mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix snd_seq_change_bit()
snd_seq_change_bit() doesn't change but only set. From: Aldrin Martoq <amartoq@dcc.uchile.cl>
This commit is contained in:
		
							parent
							
								
									ac10483b21
								
							
						
					
					
						commit
						0e5b2a006a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -4670,7 +4670,7 @@ int snd_seq_change_bit(int nr, void *array)
 | 
				
			||||||
	int result;
 | 
						int result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	result = ((((unsigned int *)array)[nr >> 5]) & (1UL << (nr & 31))) ? 1 : 0;
 | 
						result = ((((unsigned int *)array)[nr >> 5]) & (1UL << (nr & 31))) ? 1 : 0;
 | 
				
			||||||
	((unsigned int *)array)[nr >> 5] |= 1UL << (nr & 31);
 | 
						((unsigned int *)array)[nr >> 5] ^= 1UL << (nr & 31);
 | 
				
			||||||
	return result;
 | 
						return result;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue