summaryrefslogtreecommitdiff
path: root/tools/mknkboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mknkboot.c')
-rw-r--r--tools/mknkboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mknkboot.c b/tools/mknkboot.c
index dfb3c99767..600f1adb1a 100644
--- a/tools/mknkboot.c
+++ b/tools/mknkboot.c
@@ -219,13 +219,13 @@ int main(int argc, char *argv[])
boot2 = boot + bootlength + 12;
/* Copy dual-boot code in an endian-safe way */
- for (i = 0; i < sizeof(dualboot) / 4; i++) {
+ for (i = 0; i < (signed int)sizeof(dualboot) / 4; i++) {
put_uint32le(dualboot[i], boot2 + 12 + i*4);
}
/* Calculate checksum */
sum = 0;
- for (i = 0; i < sizeof(dualboot); i++) {
+ for (i = 0; i < (signed int)sizeof(dualboot); i++) {
sum += boot2[i+12];
}