summaryrefslogtreecommitdiffstats
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-11-18 17:34:33 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-11-18 17:34:33 +0000
commite8d81f90366d4dc3a93fc69ac924c5e10cd22830 (patch)
tree960482a2fae52d3446b4b7c70cdd4acb764a856c /apps/voice_thread.c
parentea929b1f8fe340dbb29f915049ea668b73d542b5 (diff)
downloadrockbox-e8d81f90366d4dc3a93fc69ac924c5e10cd22830.tar.gz
rockbox-e8d81f90366d4dc3a93fc69ac924c5e10cd22830.tar.bz2
rockbox-e8d81f90366d4dc3a93fc69ac924c5e10cd22830.zip
Fix some sim warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15670 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 8792d1c752..c104fa5c7f 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -84,7 +84,7 @@ struct voice_info
{
pcm_more_callback_type get_more; /* Callback to get more clips */
unsigned char *start; /* Start of clip */
- ssize_t size; /* Size of clip */
+ size_t size; /* Size of clip */
};
/* Private thread data for its current state that must be passed to its
@@ -116,7 +116,7 @@ void mp3_play_data(const unsigned char* start, int size,
* safely cached it in its own private data */
static struct voice_info voice_clip NOCACHEBSS_ATTR;
- if (get_more != NULL && start != NULL && size > 0)
+ if (get_more != NULL && start != NULL && (ssize_t)size > 0)
{
mutex_lock(&voice_mutex);
@@ -322,7 +322,7 @@ static void voice_thread(void)
if (td.vi.get_more != NULL)
td.vi.get_more(&td.vi.start, &td.vi.size);
- if (td.vi.start != NULL && td.vi.size > 0)
+ if (td.vi.start != NULL && (ssize_t)td.vi.size > 0)
{
/* Make bit buffer use our own buffer */
speex_bits_set_bit_buffer(&td.bits, td.vi.start, td.vi.size);