Fixed critical bug in base2(1000)

Pull request #31 introduced a critical bug that caused
calc to become unstable when base2(1000) was called.

This patch fixes that bug.
This commit is contained in:
Landon Curt Noll
2021-09-06 19:08:05 -07:00
parent 5bde797ba4
commit 1d9a4941ce

2
func.c
View File

@@ -7897,7 +7897,7 @@ f_base2(int count, NUMBER **vals)
oldbase = math_setmode2(MODE_HEX);
break;
case 1000:
oldbase = math_setmode(MODE_ENG);
oldbase = math_setmode2(MODE_ENG);
break;
default:
math_error("Unsupported base");