that basically means that you are comparing a signed value to an unsigned value. You need to match the "signedness", ie make the unsigned variable signed or vice versa.