From 93ea2511c391e0d565daf82699d7d7dd59929822 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Wed, 3 Oct 2007 09:09:08 +0000 Subject: [PATCH] Fix a crash that happens with a too long uptime. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2701 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_mix.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/engine/client/snd_mix.c b/engine/client/snd_mix.c index 8069ce3c5..94819172c 100644 --- a/engine/client/snd_mix.c +++ b/engine/client/snd_mix.c @@ -54,15 +54,15 @@ static int chnskip[6][6] = void S_TransferPaintBuffer(soundcardinfo_t *sc, int endtime) { - int startidx, out_idx; - int count; - int outlimit; - int *p; - int *skip; - int *cskip; - int val; - int snd_vol; - short *pbuf; + unsigned int startidx, out_idx; + unsigned int count; + unsigned int outlimit; + int *p; + int *skip; + int *cskip; + int val; + int snd_vol; + short *pbuf; p = (int *) paintbuffer; skip = paintskip[sc->sn.numchannels-1];