--- libmodplug-0.8/src/sndfile.cpp~ 2006-03-20 05:22:32.000000000 +0200 +++ libmodplug-0.8/src/sndfile.cpp 2006-10-03 19:21:17.000000000 +0300 @@ -1081,7 +1081,7 @@ { UINT len = 0, mem = pIns->nLength+6; - if ((!pIns) || (pIns->nLength < 4) || (!lpMemFile)) return 0; + if ((!pIns) || ((int)pIns->nLength < 4) || (!lpMemFile)) return 0; if (pIns->nLength > MAX_SAMPLE_LENGTH) pIns->nLength = MAX_SAMPLE_LENGTH; pIns->uFlags &= ~(CHN_16BIT|CHN_STEREO); if (nFlags & RSF_16BIT)