mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	py3k: FIX: Bad upside-down check in BmpImagePlugin
This commit is contained in:
		
							parent
							
								
									a8599e8bb2
								
							
						
					
					
						commit
						254f0cf674
					
				|  | @ -91,7 +91,7 @@ class BmpImageFile(ImageFile.ImageFile): | |||
|             lutsize = 4 | ||||
|             colors = i32(s[32:]) | ||||
|             direction = -1 | ||||
|             if s[11] == '\xff': | ||||
|             if i8(s[11]) == 0xff: | ||||
|                 # upside-down storage | ||||
|                 self.size = self.size[0], 2**32 - self.size[1] | ||||
|                 direction = 0 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user