summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'console.c')
-rw-r--r--console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console.c b/console.c
index 6239e4b60..e2b7c122b 100644
--- a/console.c
+++ b/console.c
@@ -473,7 +473,7 @@ bool GetArgumentInteger(uint32 *value, const char *arg)
}
*value = strtoul(arg, &endptr, 0);
- return (arg == endptr) ? false : true;
+ return arg != endptr;
}
// * ************************* * //