mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	udev: fix hex decoding
This commit is contained in:
		
							parent
							
								
									aaae99d89f
								
							
						
					
					
						commit
						4a1072e0bc
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -63,10 +63,10 @@ static int dehex(char x) {
 | 
				
			||||||
        return x - '0';
 | 
					        return x - '0';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (x >= 'A' && x <= 'F')
 | 
					    if (x >= 'A' && x <= 'F')
 | 
				
			||||||
        return x - 'A';
 | 
					        return x - 'A' + 10;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (x >= 'a' && x <= 'f')
 | 
					    if (x >= 'a' && x <= 'f')
 | 
				
			||||||
        return x - 'a';
 | 
					        return x - 'a' + 10;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return -1;
 | 
					    return -1;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue