Skip to content

Commit

Permalink
version bump, allow MB/KB (vs M/K) for ram sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Oct 12, 2022
1 parent 194c36c commit 5facdb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 5facdb0

Please sign in to comment.