From e2824c94fc5a8cb0e60554351f0b69f3df4b46fb Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Wed, 22 Mar 2006 16:04:51 +0000 Subject: [PATCH] Use size-correct casts. Fixes some AMD64 sim warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9192 a1c6a512-1295-4272-9138-f99709370657 --- apps/dsp.c | 2 +- apps/playback.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dsp.c b/apps/dsp.c index f735456393..c5bbc8fbe9 100644 --- a/apps/dsp.c +++ b/apps/dsp.c @@ -1016,7 +1016,7 @@ bool dsp_configure(int setting, void *value) sizeof(struct resample_data)); /* Fall through!!! */ case DSP_SWITCH_FREQUENCY: - dsp->codec_frequency = ((int) value == 0) ? NATIVE_FREQUENCY : (int) value; + dsp->codec_frequency = ((long) value == 0) ? NATIVE_FREQUENCY : (long) value; /* Account for playback speed adjustment when settingg dsp->frequency if we're called from the main audio thread. Voice UI thread should not need this feature. diff --git a/apps/playback.c b/apps/playback.c index 5c7bcac622..a5b518aa51 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -755,12 +755,12 @@ static void codec_configure_callback(int setting, void *value) { switch (setting) { case CODEC_SET_FILEBUF_WATERMARK: - conf_watermark = (unsigned int)value; + conf_watermark = (unsigned long)value; set_filebuf_watermark(buffer_margin); break; case CODEC_SET_FILEBUF_CHUNKSIZE: - conf_filechunk = (unsigned int)value; + conf_filechunk = (unsigned long)value; break; case CODEC_DSP_ENABLE: