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:
parent
c80954a65e
commit
590baaa3e9
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue