diff options
Diffstat (limited to 'tools/mi4.c')
-rw-r--r-- | tools/mi4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mi4.c b/tools/mi4.c index a76308cc8f..42d400864c 100644 --- a/tools/mi4.c +++ b/tools/mi4.c | |||
@@ -138,7 +138,7 @@ int mi4_encode(char *iname, char *oname, int version, int magic, | |||
138 | memset(outbuf, 0, mi4length); | 138 | memset(outbuf, 0, mi4length); |
139 | 139 | ||
140 | len = fread(outbuf+0x200, 1, length, file); | 140 | len = fread(outbuf+0x200, 1, length, file); |
141 | if(len < length) { | 141 | if(len < (size_t)length) { |
142 | perror(iname); | 142 | perror(iname); |
143 | return -2; | 143 | return -2; |
144 | } | 144 | } |
@@ -179,7 +179,7 @@ int mi4_encode(char *iname, char *oname, int version, int magic, | |||
179 | } | 179 | } |
180 | 180 | ||
181 | len = fwrite(outbuf, 1, mi4length, file); | 181 | len = fwrite(outbuf, 1, mi4length, file); |
182 | if(len < length) { | 182 | if(len < (size_t)length) { |
183 | perror(oname); | 183 | perror(oname); |
184 | return -4; | 184 | return -4; |
185 | } | 185 | } |