ET-1282 : fixed integer reduction for negative numbers