From: Alyssa Rosenzweig Date: Wed, 21 Aug 2019 16:39:04 +0000 (-0700) Subject: pan/bifrost: Correct file size signedness X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ebdd10eaf0cd0bb641125f7721c502945dfe93e;p=mesa.git pan/bifrost: Correct file size signedness Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/bifrost/cmdline.c b/src/panfrost/bifrost/cmdline.c index 16415bbd755..6dec34af0e5 100644 --- a/src/panfrost/bifrost/cmdline.c +++ b/src/panfrost/bifrost/cmdline.c @@ -77,11 +77,11 @@ disassemble(const char *filename) assert(fp); fseek(fp, 0, SEEK_END); - int filesize = ftell(fp); + unsigned filesize = ftell(fp); rewind(fp); unsigned char *code = malloc(filesize); - int res = fread(code, 1, filesize, fp); + unsigned res = fread(code, 1, filesize, fp); if (res != filesize) { printf("Couldn't read full file\n"); }