From 33ae6d8ca32eae8c04e31d5236782dda60c5725c Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Sat, 7 Mar 2015 14:21:57 -0700 Subject: [PATCH] Use long for file offsets. --- src/fix/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fix/main.c b/src/fix/main.c index 9af2d092..f634ce57 100644 --- a/src/fix/main.c +++ b/src/fix/main.c @@ -353,7 +353,8 @@ main(int argc, char *argv[]) */ /* We will pad the ROM to match the size given in the header. */ - int romsize, newsize, headbyte; + long romsize, newsize; + int headbyte; uint8_t *buf; fseek(rom, 0, SEEK_END); romsize = ftell(rom);