Was using <= 0 comparison on an unsigned value.