From 290bc733a665efc307330c4403f80c9cb68d6351 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 11 Nov 1998 20:16:24 +0000 Subject: [PATCH] Fix for integer type switches... --- alsactl/alsactl_parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alsactl/alsactl_parser.y b/alsactl/alsactl_parser.y index f463152..7382e06 100644 --- a/alsactl/alsactl_parser.y +++ b/alsactl/alsactl_parser.y @@ -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 )