summaryrefslogtreecommitdiff
path: root/util/romtool/tools/rom-mkpayload.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romtool/tools/rom-mkpayload.c')
-rw-r--r--util/romtool/tools/rom-mkpayload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/romtool/tools/rom-mkpayload.c b/util/romtool/tools/rom-mkpayload.c
index 54fde24cec..190e53a9c8 100644
--- a/util/romtool/tools/rom-mkpayload.c
+++ b/util/romtool/tools/rom-mkpayload.c
@@ -163,7 +163,7 @@ int parse_elf(unsigned char *input, unsigned char **output, int algo,
/* If the compressed section is larger, then use the
original stuff */
- if (len > phdr[i].p_filesz) {
+ if ((unsigned int)len > phdr[i].p_filesz) {
segs[segments].compression = 0;
segs[segments].len = htonl(phdr[i].p_filesz);