fix signed/unsigned comparison
Stefan Schuermans

Stefan Schuermans commited on 2019-05-01 23:13:21
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -288,7 +288,7 @@ bool Distri::on_packet(Glib::IOCondition condition)
288 288
                               (unsigned int)buffer[7];
289 289
         unsigned int channels = buffer[9];
290 290
         // check data length
291
-        if (sz >= 12 + outputs * pixels * channels) {
291
+        if ((size_t)sz >= 12 + outputs * pixels * channels) {
292 292
           uint8_t const *data = buffer + 12;
293 293
           // process pixel data
294 294
           procPixelData(outputs, pixels, channels, data);
295 295