build mikmod and the music code on windows
[dosdemo] / libs / mikmod / playercode / virtch2.c
index 6b9807d..1807b4a 100644 (file)
@@ -1165,7 +1165,7 @@ void VC2_WriteSamples(SBYTE* buf,ULONG todo)
                        tickleft=(md_mixfreq*125L*SAMPLING_FACTOR)/(md_bpm*50L);
                        tickleft&=~(SAMPLING_FACTOR-1);
                }
-               left = MIN(tickleft, todo);
+               left = MIN(tickleft, (long)todo);
                buffer    = buf;
                tickleft -= left;
                todo     -= left;