Remove some potential harmfull "long"

While the use of "long" was harmless in this case, it's unnecessary and
we try to keep Quake II free from longs.
This commit is contained in:
Yamagi Burmeister 2012-06-22 09:44:26 +02:00
parent c80954a65e
commit 590baaa3e9
3 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ typedef struct
int samplepos; /* in mono samples */ int samplepos; /* in mono samples */
int samplebits; int samplebits;
int speed; int speed;
byte *buffer; unsigned char *buffer;
} dma_t; } dma_t;
typedef struct typedef struct

View File

@ -945,7 +945,7 @@ S_ClearBuffer(void)
if (dma.buffer) if (dma.buffer)
{ {
int i; int i;
unsigned char *ptr = (unsigned char *)dma.buffer; unsigned char *ptr = dma.buffer;
i = dma.samples * dma.samplebits / 8; i = dma.samples * dma.samplebits / 8;

View File

@ -48,9 +48,9 @@ S_TransferPaintBuffer(int endtime)
int *p; int *p;
int step; int step;
int val; int val;
unsigned long *pbuf; unsigned char *pbuf;
pbuf = (unsigned long *)dma.buffer; pbuf = dma.buffer;
if (s_testsound->value) if (s_testsound->value)
{ {