summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-21 09:39:04 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-21 10:38:31 -0700
commit5ebdd10eaf0cd0bb641125f7721c502945dfe93e (patch)
treecdfe222cc0bdb6a067daefaff4014107d7c45445
parent87afc2e2da8e820d35909a92e5104bd976ce0928 (diff)
pan/bifrost: Correct file size signedness
Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/panfrost/bifrost/cmdline.c4
1 files 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");
}