comparison 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
comparison
equal deleted inserted replaced
1611:ec3466b08f17 1612:97d0966f4bf7
286 286
287 /* Calculate the final parameters for this audio specification */ 287 /* Calculate the final parameters for this audio specification */
288 SDL_CalculateAudioSpec(spec); 288 SDL_CalculateAudioSpec(spec);
289 289
290 /* Determine the power of two of the fragment size */ 290 /* Determine the power of two of the fragment size */
291 for ( frag_spec = 0; (0x01<<frag_spec) < spec->size; ++frag_spec ); 291 for ( frag_spec = 0; (0x01U<<frag_spec) < spec->size; ++frag_spec );
292 if ( (0x01<<frag_spec) != spec->size ) { 292 if ( (0x01U<<frag_spec) != spec->size ) {
293 SDL_SetError("Fragment size must be a power of two"); 293 SDL_SetError("Fragment size must be a power of two");
294 DSP_CloseAudio(this); 294 DSP_CloseAudio(this);
295 return(-1); 295 return(-1);
296 } 296 }
297 frag_spec |= 0x00020000; /* two fragments, for low latency */ 297 frag_spec |= 0x00020000; /* two fragments, for low latency */