Fix error when "30x:AB" was not recognised as "3*0x:AB"

This commit is contained in:
serso 2016-05-16 20:48:48 +02:00
parent 15b0984b23
commit 6cd6bdda7c

View File

@ -117,7 +117,12 @@ public class NumberBuilder extends BaseNumberBuilder {
return 0; return 0;
} else { } else {
// process current number (and go to the next one) // process current number (and go to the next one)
return processNumber(sb); final int offset = processNumber(sb);
if (result.type == MathType.numeral_base) {
// if current token is numeral base - update current numeral base
nb = NumeralBase.getByPrefix(result.match);
}
return offset;
} }
} }