casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
This commit is contained in:
		
							parent
							
								
									85e4094994
								
							
						
					
					
						commit
						9740d47579
					
				@ -624,7 +624,7 @@ setup(Bool bottom) {
 | 
			
		||||
int
 | 
			
		||||
strcaseido(const char *text, const char *pattern) {
 | 
			
		||||
	for(; *text && *pattern; text++)
 | 
			
		||||
		if (tolower(*text) == tolower(*pattern))
 | 
			
		||||
		if(tolower((int)*text) == tolower((int)*pattern))
 | 
			
		||||
			pattern++;
 | 
			
		||||
	return !*pattern;
 | 
			
		||||
}                                  
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user