tools_common.c: unsigned signed mismatch addressed

Change-Id: I919ca42794f13751ca099868e73892d9df64e45f
diff --git a/tools_common.c b/tools_common.c
index b481579..7cfd066 100644
--- a/tools_common.c
+++ b/tools_common.c
@@ -246,7 +246,7 @@
     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;
     }