From 5facdb095c2758946e96b3aa3655a6d2c9effd49 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 11 Oct 2022 21:11:36 -0400 Subject: [PATCH] version bump, allow MB/KB (vs M/K) for ram sizes --- bin/loader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/loader.cpp b/bin/loader.cpp index 47f9f33..1279656 100644 --- a/bin/loader.cpp +++ b/bin/loader.cpp @@ -583,7 +583,7 @@ void MidInstructionExceptionFunc() } -#define MPW_VERSION "0.8.2" +#define MPW_VERSION "0.8.3" void help() { printf("MPW " MPW_VERSION "\n"); @@ -624,9 +624,9 @@ bool parse_number(const char *input, uint32_t *dest) if (*end) { int old = value; - if (strcasecmp(end, "M") == 0) + if (strcasecmp(end, "M") == 0 || strcasecmp(end, "MB") == 0) value *= 1024 * 1024; - else if (strcasecmp(end, "K") == 0) + else if (strcasecmp(end, "K") == 0 || strcasecmp(end, "KB") == 0) value *= 1024; else {