Fix for integer type switches...

This commit is contained in:
Jaroslav Kysela 1998-11-11 20:16:24 +00:00
parent 350e1007e3
commit 290bc733a6

View file

@ -485,8 +485,8 @@ static void set_switch_integer( int val )
snd_ctl_switch_t *sw = (snd_ctl_switch_t *)Xswitch;
unsigned int xx;
if ( sw -> type != SND_CTL_SW_TYPE_BYTE ||
sw -> type != SND_CTL_SW_TYPE_WORD ||
if ( sw -> type != SND_CTL_SW_TYPE_BYTE &&
sw -> type != SND_CTL_SW_TYPE_WORD &&
sw -> type != SND_CTL_SW_TYPE_DWORD )
yyerror( "Switch '%s' isn't integer type...", sw -> name );
if ( val < sw -> low || val > sw -> high )