diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-05-05 12:15:19 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-05-05 12:15:19 -0700 |
commit | 7a90211e35841758ff11e79a1633494e2055df88 (patch) | |
tree | e1f890c7fc1c6be0515f8fc22f542096bda837be | |
parent | d056a3c6843cf5f6c8b392c46bc4f1b637f87d0b (diff) |
Fix misleading indentation in math.c
math.c: In function ‘numeric’:
math.c:267:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentat
ion]
if ((int) strlen(dispstr) >= MAXDISP)
^~
math.c:270:5: note: ...this statement, but the latter is misleadingly indented a
s if it were guarded by the ‘if’
switch (keynum){
^~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | math.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -267,7 +267,7 @@ numeric(int keynum) if ((int) strlen(dispstr) >= MAXDISP) return; - switch (keynum){ + switch (keynum){ case kONE: st[0] = '1'; break; case kTWO: st[0] = '2'; break; case kTHREE: st[0] = '3'; break; @@ -278,9 +278,9 @@ numeric(int keynum) case kEIGHT: st[0] = '8'; break; case kNINE: st[0] = '9'; break; case kZERO: st[0] = '0'; break; - } - st[1] = '\0'; - strcat(dispstr,st); + } + st[1] = '\0'; + strcat(dispstr,st); DrawDisplay(); if (clrdisp && keynum != kZERO) |