diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-03-22 16:04:51 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-03-22 16:04:51 +0000 |
commit | e2824c94fc5a8cb0e60554351f0b69f3df4b46fb (patch) | |
tree | 2811a3e0269d5582a68a6a39dbcf03bb525c1835 | |
parent | 738a584a5c93884a6aabd7de7bf42ad59c8c3d53 (diff) | |
download | rockbox-e2824c94fc5a8cb0e60554351f0b69f3df4b46fb.tar.gz rockbox-e2824c94fc5a8cb0e60554351f0b69f3df4b46fb.zip |
Use size-correct casts. Fixes some AMD64 sim warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9192 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/dsp.c | 2 | ||||
-rw-r--r-- | 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) | |||
1016 | sizeof(struct resample_data)); | 1016 | sizeof(struct resample_data)); |
1017 | /* Fall through!!! */ | 1017 | /* Fall through!!! */ |
1018 | case DSP_SWITCH_FREQUENCY: | 1018 | case DSP_SWITCH_FREQUENCY: |
1019 | dsp->codec_frequency = ((int) value == 0) ? NATIVE_FREQUENCY : (int) value; | 1019 | dsp->codec_frequency = ((long) value == 0) ? NATIVE_FREQUENCY : (long) value; |
1020 | /* Account for playback speed adjustment when settingg dsp->frequency | 1020 | /* Account for playback speed adjustment when settingg dsp->frequency |
1021 | if we're called from the main audio thread. Voice UI thread should | 1021 | if we're called from the main audio thread. Voice UI thread should |
1022 | not need this feature. | 1022 | 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) | |||
755 | { | 755 | { |
756 | switch (setting) { | 756 | switch (setting) { |
757 | case CODEC_SET_FILEBUF_WATERMARK: | 757 | case CODEC_SET_FILEBUF_WATERMARK: |
758 | conf_watermark = (unsigned int)value; | 758 | conf_watermark = (unsigned long)value; |
759 | set_filebuf_watermark(buffer_margin); | 759 | set_filebuf_watermark(buffer_margin); |
760 | break; | 760 | break; |
761 | 761 | ||
762 | case CODEC_SET_FILEBUF_CHUNKSIZE: | 762 | case CODEC_SET_FILEBUF_CHUNKSIZE: |
763 | conf_filechunk = (unsigned int)value; | 763 | conf_filechunk = (unsigned long)value; |
764 | break; | 764 | break; |
765 | 765 | ||
766 | case CODEC_DSP_ENABLE: | 766 | case CODEC_DSP_ENABLE: |