diff options
author | Wincent Balin <wincent@rockbox.org> | 2010-05-20 03:38:53 +0000 |
---|---|---|
committer | Wincent Balin <wincent@rockbox.org> | 2010-05-20 03:38:53 +0000 |
commit | ae2659e6339fd4c6318a77f8533b47a0d903de1f (patch) | |
tree | 94c1226ae86b7aac54e596b01bedc18654a3061c | |
parent | 6274944942d2fa45b45eb30f48835e89073acc31 (diff) | |
download | rockbox-ae2659e6339fd4c6318a77f8533b47a0d903de1f.tar.gz rockbox-ae2659e6339fd4c6318a77f8533b47a0d903de1f.zip |
pdbox: Got rid of signedness-related warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26183 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/pdbox/PDa/src/g_array.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_array.c b/apps/plugins/pdbox/PDa/src/g_array.c index cb9ea1c6f7..eba01a67ee 100644 --- a/apps/plugins/pdbox/PDa/src/g_array.c +++ b/apps/plugins/pdbox/PDa/src/g_array.c | |||
@@ -1264,7 +1264,7 @@ static void garray_read16(t_garray *x, t_symbol *filename, | |||
1264 | for (i = 0; i < nelem; i++) | 1264 | for (i = 0; i < nelem; i++) |
1265 | { | 1265 | { |
1266 | #ifdef ROCKBOX | 1266 | #ifdef ROCKBOX |
1267 | if(read(fd, &s, sizeof(s)) < (ssize_t) 1 * sizeof(s)) | 1267 | if(read(fd, &s, sizeof(s)) < (ssize_t) (1 * sizeof(s))) |
1268 | #else | 1268 | #else |
1269 | if (fread(&s, sizeof(s), 1, fd) < 1) | 1269 | if (fread(&s, sizeof(s), 1, fd) < 1) |
1270 | #endif | 1270 | #endif |
@@ -1413,7 +1413,7 @@ static void garray_write16(t_garray *x, t_symbol *filename, t_symbol *format) | |||
1413 | } | 1413 | } |
1414 | memcpy((void *)(waveheader + 40), (void *)(&intbuf), 4); | 1414 | memcpy((void *)(waveheader + 40), (void *)(&intbuf), 4); |
1415 | #ifdef ROCKBOX | 1415 | #ifdef ROCKBOX |
1416 | if(write(fd, waveheader, sizeof(waveheader)) < (ssize_t) 1 * sizeof(waveheader)) | 1416 | if(write(fd, waveheader, sizeof(waveheader)) < (ssize_t) (1 * sizeof(waveheader))) |
1417 | #else | 1417 | #else |
1418 | if (fwrite(waveheader, sizeof(waveheader), 1, fd) < 1) | 1418 | if (fwrite(waveheader, sizeof(waveheader), 1, fd) < 1) |
1419 | #endif | 1419 | #endif |
@@ -1434,7 +1434,7 @@ static void garray_write16(t_garray *x, t_symbol *filename, t_symbol *format) | |||
1434 | xxx = foo[0]; foo[0] = foo[1]; foo[1] = xxx; | 1434 | xxx = foo[0]; foo[0] = foo[1]; foo[1] = xxx; |
1435 | } | 1435 | } |
1436 | #ifdef ROCKBOX | 1436 | #ifdef ROCKBOX |
1437 | if(write(fd, &sh, sizeof(sh)) < (ssize_t) 1 * sizeof(sh)) | 1437 | if(write(fd, &sh, sizeof(sh)) < (ssize_t) (1 * sizeof(sh))) |
1438 | #else | 1438 | #else |
1439 | if (fwrite(&sh, sizeof(sh), 1, fd) < 1) | 1439 | if (fwrite(&sh, sizeof(sh), 1, fd) < 1) |
1440 | #endif | 1440 | #endif |