Permalink
Browse files

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.
  • Loading branch information...
1 parent c80954a commit 590baaa3e91014f29051ab6472609d2f41bf8f79 @Yamagi Yamagi committed Jun 22, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/client/sound/header/local.h
  2. +1 −1 src/client/sound/snd_dma.c
  3. +2 −2 src/client/sound/snd_mix.c
@@ -79,7 +79,7 @@ typedef struct
int samplepos; /* in mono samples */
int samplebits;
int speed;
- byte *buffer;
+ unsigned char *buffer;
} dma_t;
typedef struct
@@ -945,7 +945,7 @@ S_ClearBuffer(void)
if (dma.buffer)
{
int i;
- unsigned char *ptr = (unsigned char *)dma.buffer;
+ unsigned char *ptr = dma.buffer;
i = dma.samples * dma.samplebits / 8;
@@ -48,9 +48,9 @@ S_TransferPaintBuffer(int endtime)
int *p;
int step;
int val;
- unsigned long *pbuf;
+ unsigned char *pbuf;
- pbuf = (unsigned long *)dma.buffer;
+ pbuf = dma.buffer;
if (s_testsound->value)
{

0 comments on commit 590baaa

Please sign in to comment.