Commit 8033fbfd authored by timeless's avatar timeless Committed by conrad
Browse files

Fix warnings found while building mozilla

Removing unreachable code because type is unsigned
Fixing signedness warnings
parent cea3aca2
......@@ -437,10 +437,9 @@ fish_sound_comments_decode (FishSound * fsound, unsigned char * comments,
end = c+length;
len=readint(c, 0);
if (len<0) return -1;
c+=4;
if (len>end-c) return -1;
if (len > (unsigned long) length - 4) return -1;
/* Vendor */
if (len > 0) {
......@@ -474,10 +473,9 @@ fish_sound_comments_decode (FishSound * fsound, unsigned char * comments,
#ifdef DEBUG
printf ("fish_sound_comments_decode: [%d] len %d\n", i, len);
#endif
if (len<0) return -1;
c+=4;
if (len>end-c) return -1;
if (len > (unsigned long) (end-c)) return -1;
name = c;
value = fs_index_len (c, '=', len);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment