shithub: choc

Download patch

ref: dcf2c6a09c97c284b6cdff8c791cce8fe03fd69d
parent: b39121c6a682eb8ae5efd29a875bd7c098185f04
author: James Haley <haleyjd@hotmail.com>
date: Fri Feb 20 14:50:58 EST 2015

Warning fixes

Signed/unsigned comparison mismatches

--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -422,7 +422,7 @@
     sha1_context_t context;
     sha1_digest_t hash;
     char *filename;
-    int i;
+    unsigned int i;
 
     // Don't bother doing a hash if we're never going to find anything.
     if (subst_music_len == 0)
@@ -734,7 +734,8 @@
     char name[9];
     byte *data;
     FILE *fs;
-    int lumpnum, h;
+    unsigned int lumpnum;
+    size_t h;
 
     fs = fopen(filename, "w");