Use long for file offsets.

This commit is contained in:
Anthony J. Bentley
2015-03-07 14:21:57 -07:00
parent ebc9a4b786
commit 33ae6d8ca3

View File

@@ -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);