I don't know why but change:
int x;

to

unsigned int X;

BR's
JSouto

Edson Brusque wrote:

Hello all,    Can someone please tell me what's wrong with this code (for CC5XFREE C Compiler)?