diff src/audio/dsp/SDL_dspaudio.c @ 1612:97d0966f4bf7

Fixed some ultra-pedantic gcc warnings
author Sam Lantinga <slouken@libsdl.org>
date Fri, 24 Mar 2006 06:10:24 +0000
parents d910939febfa
children 782fd950bd46 c121d94672cb aeb55f698ee3
line wrap: on
line diff
--- a/src/audio/dsp/SDL_dspaudio.c	Fri Mar 24 05:11:51 2006 +0000
+++ b/src/audio/dsp/SDL_dspaudio.c	Fri Mar 24 06:10:24 2006 +0000
@@ -288,8 +288,8 @@
 	SDL_CalculateAudioSpec(spec);
 
 	/* Determine the power of two of the fragment size */
-	for ( frag_spec = 0; (0x01<<frag_spec) < spec->size; ++frag_spec );
-	if ( (0x01<<frag_spec) != spec->size ) {
+	for ( frag_spec = 0; (0x01U<<frag_spec) < spec->size; ++frag_spec );
+	if ( (0x01U<<frag_spec) != spec->size ) {
 		SDL_SetError("Fragment size must be a power of two");
 		DSP_CloseAudio(this);
 		return(-1);