diff options
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r-- | tools/mkimage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index 0e83546..9ec02ce 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -291,7 +291,7 @@ NXTARG: ; exit (EXIT_FAILURE); } - if (sbuf.st_size < sizeof(image_header_t)) { + if ((unsigned)sbuf.st_size < sizeof(image_header_t)) { fprintf (stderr, "%s: Bad size: \"%s\" is no valid image\n", cmdname, imagefile); @@ -530,7 +530,7 @@ copy_file (int ifd, const char *datafile, int pad) * reserved for it. */ - if (sbuf.st_size < sizeof(image_header_t)) { + if ((unsigned)sbuf.st_size < sizeof(image_header_t)) { fprintf (stderr, "%s: Bad size: \"%s\" is too small for XIP\n", cmdname, datafile); |