src/audio/SDL_wave.c
changeset 1428 5f52867ba65c
parent 1402 d910939febfa
child 1465 8dfa9a6d69a5
--- a/src/audio/SDL_wave.c	Fri Feb 24 17:03:06 2006 +0000
+++ b/src/audio/SDL_wave.c	Fri Feb 24 18:24:57 2006 +0000
@@ -108,9 +108,9 @@
 	if ( delta < 16 ) {
 		delta = 16;
 	}
-	state->iDelta = delta;
+	state->iDelta = (Uint16)delta;
 	state->iSamp2 = state->iSamp1;
-	state->iSamp1 = new_sample;
+	state->iSamp1 = (Sint16)new_sample;
 	return(new_sample);
 }
 
@@ -371,8 +371,8 @@
 			}
 
 			/* Store the initial sample we start with */
-			decoded[0] = state[c].sample&0xFF;
-			decoded[1] = state[c].sample>>8;
+			decoded[0] = (Uint8)(state[c].sample&0xFF);
+			decoded[1] = (Uint8)(state[c].sample>>8);
 			decoded += 2;
 		}