summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bin2coff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bin2coff.c b/scripts/bin2coff.c
index 8c3a5705..f9d30eeb 100644
--- a/scripts/bin2coff.c
+++ b/scripts/bin2coff.c
@@ -292,9 +292,9 @@ main (int argc, char *argv[])
x86_32 = 0;
last_arg = argc;
- if (argc >= 4 && check_64bit(argv[4], &x86_32))
+ if (argc >= 4 && check_64bit(argv[3], &x86_32))
last_arg = 4;
- else if (argc >= 5 && check_64bit(argv[5], &x86_32))
+ else if (argc >= 5 && check_64bit(argv[4], &x86_32))
last_arg = 5;
/* Label setup */