diff options
author | Stéphane Aulery <lkppo@free.fr> | 2013-07-07 22:50:29 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-01-06 14:40:01 -0800 |
commit | aa3d39389bfc752486a83933574d0365c74d4e29 (patch) | |
tree | e9744b0dfa084acad2a517084846b7ca34501804 | |
parent | 8d156f428912aecdd493e075b75e735bfbae7dda (diff) |
Reduce scope of cell (cppcheck --verbose --enable=all)
Signed-off-by: Stéphane Aulery <lkppo@free.fr>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | math.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |