[#18] Wrong code generated for negated values, such as -1