summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/math.c b/math.c
index bd016fd..e74cca6 100644
--- a/math.c
+++ b/math.c
@@ -210,12 +210,13 @@ DrawDisplay(void)
void
numeric(int keynum)
{
- char st[2];
- int cell = 0;
+ char st[2];
flagINV=0;
if (rpn && (memop == kSTO || memop == kRCL || memop == kSUM)) {
+ int cell = 0;
+
switch (keynum) {
case kONE: cell = 1; break;
case kTWO: cell = 2; break;