mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix pointer aliasing warning which for some reason was only triggered in SH builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28630 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
572c6eeb29
commit
feb74ad517
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@
|
|||
#define TEST_TIME 10 /* in seconds */
|
||||
|
||||
static unsigned char* audiobuf;
|
||||
static ssize_t audiobuflen;
|
||||
static size_t audiobuflen;
|
||||
|
||||
static unsigned short frnd_buffer;
|
||||
static int line = 0;
|
||||
|
@ -207,7 +207,7 @@ static bool file_speed(int chunksize, bool align)
|
|||
long filesize = 0;
|
||||
long size, time;
|
||||
|
||||
if (chunksize >= audiobuflen)
|
||||
if ((unsigned)chunksize >= audiobuflen)
|
||||
return false;
|
||||
|
||||
log_text("--------------------", true);
|
||||
|
@ -432,7 +432,7 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
rb->closedir(dir);
|
||||
}
|
||||
|
||||
audiobuf = rb->plugin_get_audio_buffer((size_t *)&audiobuflen);
|
||||
audiobuf = rb->plugin_get_audio_buffer(&audiobuflen);
|
||||
/* align start and length to 32 bit */
|
||||
align = (-(int)audiobuf) & 3;
|
||||
audiobuf += align;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue