From bae81576970c9e8f3908a76dc747bd675c6823c2 Mon Sep 17 00:00:00 2001 From: orbea Date: Fri, 13 Oct 2017 22:05:26 -0700 Subject: [PATCH] Silence compiler warnings. See. https://github.com/martincameron/micromod/commit/010f30e404f1b703c31c46f6e67631b98d596ac9 https://github.com/martincameron/micromod/commit/9918b696478803e3a4abea59867b34ef11053a13 --- deps/ibxm/ibxm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ibxm/ibxm.c b/deps/ibxm/ibxm.c index 6dff819bd9..526cfd6875 100644 --- a/deps/ibxm/ibxm.c +++ b/deps/ibxm/ibxm.c @@ -4,7 +4,7 @@ #include "ibxm.h" -const char *IBXM_VERSION = "ibxm/ac mod/xm/s3m replay 20170704 (c)mumart@gmail.com"; +const char *IBXM_VERSION = "ibxm/ac mod/xm/s3m replay 20170901 (c)mumart@gmail.com"; static const int FP_SHIFT = 15, FP_ONE = 32768, FP_MASK = 32767; @@ -92,7 +92,7 @@ static char* data_ascii( struct data *data, int offset, int length, char *dest ) if( offset > data->length ) { offset = data->length; } - if( offset + length > data->length ) { + if( ( unsigned int ) offset + length > ( unsigned int ) data->length ) { length = data->length - offset; } for( idx = 0; idx < length; idx++ ) {