negative_height_check.py
1 """ 2 Check for negative height on the BMP. 3 Seperated into it's own file to support builds 4 without longint. 5 """ 6 7 8 def negative_height_check(height): 9 """Check the height return modified if negative.""" 10 if height > 0x7FFFFFFF: 11 return height - 4294967296 12 return height