mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-27 17:51:04 +00:00
version bump, allow MB/KB (vs M/K) for ram sizes
This commit is contained in:
parent
194c36c89a
commit
5facdb095c
@ -583,7 +583,7 @@ void MidInstructionExceptionFunc()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define MPW_VERSION "0.8.2"
|
#define MPW_VERSION "0.8.3"
|
||||||
void help()
|
void help()
|
||||||
{
|
{
|
||||||
printf("MPW " MPW_VERSION "\n");
|
printf("MPW " MPW_VERSION "\n");
|
||||||
@ -624,9 +624,9 @@ bool parse_number(const char *input, uint32_t *dest)
|
|||||||
if (*end)
|
if (*end)
|
||||||
{
|
{
|
||||||
int old = value;
|
int old = value;
|
||||||
if (strcasecmp(end, "M") == 0)
|
if (strcasecmp(end, "M") == 0 || strcasecmp(end, "MB") == 0)
|
||||||
value *= 1024 * 1024;
|
value *= 1024 * 1024;
|
||||||
else if (strcasecmp(end, "K") == 0)
|
else if (strcasecmp(end, "K") == 0 || strcasecmp(end, "KB") == 0)
|
||||||
value *= 1024;
|
value *= 1024;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user