# HG changeset patch # User Ryan C. Gordon # Date 1001451740 0 # Node ID 7505dcf8d3b777c21de15461922a3cb55a1b3f86 # Parent c047ae35d5fac543e6706bd227b0ab6d07afad18 Fixes some Visual C++ 6.0 compiler complaints. diff -r c047ae35d5fa -r 7505dcf8d3b7 playsound/playsound.c --- a/playsound/playsound.c Tue Sep 25 21:00:02 2001 +0000 +++ b/playsound/playsound.c Tue Sep 25 21:02:20 2001 +0000 @@ -90,9 +90,9 @@ static void audio_callback(void *userdata, Uint8 *stream, int len) { static Uint8 overflow[16384]; /* this is a hack. */ - static Uint32 overflowBytes = 0; + static int overflowBytes = 0; Sound_Sample *sample = *((Sound_Sample **) userdata); - Uint32 bw = 0; /* bytes written to stream*/ + int bw = 0; /* bytes written to stream*/ Uint32 rc; /* return code */ if (overflowBytes > 0) @@ -107,7 +107,7 @@ rc = Sound_Decode(sample); if (rc > 0) { - if (bw + rc > len) + if ((bw + (int) rc) > len) { overflowBytes = (bw + rc) - len; memcpy(overflow, @@ -140,7 +140,8 @@ static void output_usage(const char *argv0) { - fprintf(stderr, "USAGE: %s [soundFile2] ... [soundFileN]\n", + fprintf(stderr, + "USAGE: %s [--decoders] [soundFile1] ... [soundFileN]\n", argv0); } /* output_usage */