Silence compiler warnings.

See.

010f30e404
9918b69647
This commit is contained in:
orbea 2017-10-13 22:05:26 -07:00
parent 052ea42c0b
commit bae8157697

4
deps/ibxm/ibxm.c vendored
View File

@ -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++ ) {