el_supremo: Shouldn't it be: x = -x;
el_supremo: Shouldn't it be:
x = -x;
Yes. Shows what happens when you don't test.