From 5ebdd10eaf0cd0bb641125f7721c502945dfe93e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 21 Aug 2019 09:39:04 -0700 Subject: [PATCH] pan/bifrost: Correct file size signedness Signed-off-by: Alyssa Rosenzweig --- src/panfrost/bifrost/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } -- 2.30.2