diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-18 10:38:49 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-18 10:38:49 -0300 |
commit | 8c653212c0e6d15997e4217a514301f5682a41c4 (patch) | |
tree | 53c72812eebbb69c212183cb77db8051731f63c2 /InfoScreen.c | |
parent | b064d501ae68a20f519064662205905dbe9f9b85 (diff) |
Replace size_t with int/void* union
I was occasionally passing negative values to size_t.
Plus, this better reflects the intent of the variant argument.
Reported by Coverity:
https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500
Diffstat (limited to 'InfoScreen.c')
-rw-r--r-- | InfoScreen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/InfoScreen.c b/InfoScreen.c index dd5095c7..fab8daea 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -115,8 +115,9 @@ void InfoScreen_run(InfoScreen* this) { Panel_draw(panel, true); - if (this->inc->active) - move(LINES-1, CRT_cursorX); + if (this->inc->active) { + (void) move(LINES-1, CRT_cursorX); + } set_escdelay(25); int ch = getch(); |