Minor bugfix in numeral system

This commit is contained in:
llsth 2015-04-12 17:00:20 +02:00
parent 8f5d28f0b0
commit b78cac0546
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ void Program::NewPositionalInput(short unsigned int base, short unsigned int dig
{
delete Input;
if (digits == 10) {
if (base == 10) {
Input = new DecimalSystem(digits);
} else {
Input = new PositionalNumeralSystem(base, digits);
@ -73,7 +73,7 @@ void Program::NewPositionalOutput(short unsigned int base, short unsigned int di
{
delete Output;
if (digits == 10) {
if (base == 10) {
Output = new DecimalSystem(digits);
} else {
Output = new PositionalNumeralSystem(base, digits);