TS-153: fixed singed/unsinged compare