All integer values were marked as unsigned. Was not noticed since output data were probably too small (<2^31)