commit | 33d7832b19e8b8eb7e482ada89fe038f91082e04 | [log] [tgz] |
---|---|---|
author | Brian P. Hinz <bphinz@users.sf.net> | Thu Nov 16 17:46:15 2017 -0500 |
committer | Brian P. Hinz <bphinz@users.sf.net> | Thu Nov 16 17:50:49 2017 -0500 |
tree | b4928faa25a991b47b7f73a0e41eb84727566d36 | |
parent | 1e14a3ee407c3dc23f64cbf3573487fc13996a0d [diff] [blame] |
Fix "int-in-bool-context" compile errors
diff --git a/common/rfb/CMsgReader.cxx b/common/rfb/CMsgReader.cxx index c325d48..0271936 100644 --- a/common/rfb/CMsgReader.cxx +++ b/common/rfb/CMsgReader.cxx
@@ -221,7 +221,7 @@ rdr::U8 buf[width*height*4]; rdr::U8* out; - if (width * height) { + if (width * height > 0) { pr = is->readU8(); pg = is->readU8(); pb = is->readU8();