pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d881eb
)
Fix build warning when chars are unsigned
author
Fredrik Fornwall
<fredrik@fornwall.net>
Thu, 7 Jun 2018 23:09:56 +0000
(
01:09
+0200)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Thu, 7 Jun 2018 23:09:56 +0000
(
01:09
+0200)
Fix the following warning when chars are unsigned:
viewer.c:988:25: warning: comparison of constant -1 with expression of type 'char' is always true
[-Wtautological-constant-out-of-range-compare]
while((c = getch()) != ERR) {
src/viewer.c
patch
|
blob
|
history
diff --git
a/src/viewer.c
b/src/viewer.c
index
20d496d
..
f0a1d99
100644
(file)
--- a/
src/viewer.c
+++ b/
src/viewer.c
@@
-982,7
+982,7
@@
int int_length (int val) {
int get_slide_number(char init) {
int retval = init - '0';
-
char
c;
+
int
c;
// block for tenths of a second when using getch, ERR if no input
halfdelay(GOTO_SLIDE_DELAY);
while((c = getch()) != ERR) {