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/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx index 2d4998b..6ef7692 100644 --- a/common/rfb/SMsgWriter.cxx +++ b/common/rfb/SMsgWriter.cxx
@@ -528,7 +528,7 @@ os->writeU16(width); os->writeU16(height); os->writeU32(pseudoEncodingXCursor); - if (width * height) { + if (width * height > 0) { os->writeU8(255); os->writeU8(255); os->writeU8(255);