- for (i = 1; i <= CC_MAXCODE; i++) + for (i = 1; i <= (int)CC_MAXCODE; i++) It looks ugly to me. Why is CC_MAXCODE unsigned? ... #define CC_DEVICE 12 #define CC_VARLIST 13U #define CC_MAXCODE CC_VARLIST Removing the U works for me. -- These are my opinions. I hate spam.