You compare different definition, you probably defined a value as an int and comparing it to a uint, while you should have defined it as a uint.