mirror of
https://github.com/louisrubet/rpn
synced 2024-12-28 09:58:52 +01:00
#172: corrected bin entry
This commit is contained in:
parent
5e6aa1b197
commit
ae114af20c
1 changed files with 2 additions and 0 deletions
|
@ -439,6 +439,8 @@ static bool get_number(string& entry, program& prog, string& remaining_entry)
|
||||||
string beg = entry.substr(0, 2);
|
string beg = entry.substr(0, 2);
|
||||||
if (beg == "0x" || beg == "0X")
|
if (beg == "0x" || beg == "0X")
|
||||||
num->_representation = number::hex;
|
num->_representation = number::hex;
|
||||||
|
else if (beg == "0b" || beg == "0B")
|
||||||
|
num->_representation = number::bin;
|
||||||
else
|
else
|
||||||
num->_representation = number::dec;
|
num->_representation = number::dec;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue