From 1d9a4941ce364c3fcba10396bc7adb17f312268c Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Mon, 6 Sep 2021 19:08:05 -0700 Subject: [PATCH] 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. --- func.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func.c b/func.c index 9e92794..65f3bb2 100644 --- a/func.c +++ b/func.c @@ -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");