]> granicus.if.org Git - libvpx/commitdiff
tools_common.c: unsigned signed mismatch addressed
authorJim Bankoski <jimbankoski@google.com>
Thu, 7 Aug 2014 13:58:13 +0000 (06:58 -0700)
committerJim Bankoski <jimbankoski@google.com>
Thu, 7 Aug 2014 13:58:13 +0000 (06:58 -0700)
Change-Id: I919ca42794f13751ca099868e73892d9df64e45f

tools_common.c

index b481579b49ad1f01ce4a3eeb79cde702a94dc88a..7cfd066ec5099d9141bad159502f413c7d395ca0 100644 (file)
@@ -246,7 +246,7 @@ int vpx_img_read(vpx_image_t *img, FILE *file) {
     int y;
 
     for (y = 0; y < h; ++y) {
-      if (fread(buf, 1, w, file) != w)
+      if (fread(buf, 1, w, file) != (size_t)w)
         return 0;
       buf += stride;
     }