Fix build warning when chars are unsigned
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 7 Jun 2018 23:09:56 +0000 (01:09 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 7 Jun 2018 23:09:56 +0000 (01:09 +0200)
commitb76ee39c67f83aae042ba2d16e05cb0c98e8185d
treefa6705b39b1801121645a5ab64205c0992f3098c
parent6d881eb6228ea504323d8acabbe3774c64996571
Fix build warning when chars are unsigned

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