From a830c01987f7625aba04fb490a6edab7f35ed330 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 30 Apr 2014 18:19:47 +0200 Subject: [PATCH] Cast to signed int to squelch compiler warning --- Modem/compression/heatshrink_encoder.c | 2 +- buildrev.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modem/compression/heatshrink_encoder.c b/Modem/compression/heatshrink_encoder.c index f2cc24f..9eed0d1 100644 --- a/Modem/compression/heatshrink_encoder.c +++ b/Modem/compression/heatshrink_encoder.c @@ -527,7 +527,7 @@ static uint16_t find_longest_match(heatshrink_encoder *hse, uint16_t start, pos = hsi->index[pos]; } #else - for (int16_t pos=end - 1; pos >= start; pos--) { + for (int16_t pos=end - 1; pos >= (int16_t)start; pos--) { for (len=0; len cmp buf[%d] == 0x%02x against %02x (start %u)\n", diff --git a/buildrev.h b/buildrev.h index 1ba7886..9c41eb0 100644 --- a/buildrev.h +++ b/buildrev.h @@ -1,2 +1,2 @@ -#define VERS_BUILD 1739 +#define VERS_BUILD 1742 #define VERS_HOST "shard"