conditions: fix small signedness bug in compares