Portability fix

This commit is contained in:
Joseph Carter 2000-01-03 20:16:47 +00:00
parent a6a29bdb63
commit 7a6884e4fb

View file

@ -120,7 +120,7 @@ qboolean SNDDMA_Init(void)
shm->speed = atoi(com_argv[i+1]);
else
{
for (i=0 ; i<sizeof(tryrates)/4 ; i++)
for (i=0; i<sizeof(tryrates)/sizeof(tryrates[0]); i++)
if (!ioctl(audio_fd, SNDCTL_DSP_SPEED, &tryrates[i])) break;
shm->speed = tryrates[i];
}