Merge pull request #5548 from orbea/micromod

Silence compiler warnings.
This commit is contained in:
Twinaphex 2017-10-14 17:45:07 +02:00 committed by GitHub
commit 590c8ee934

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