Hacker News new | ask | show | jobs
by DashAnimal 969 days ago
When comparing a signed and unsigned integer, the signed integer is promoted to unsigned integer.

So if you have a = -1, b = 1000 and compare the two, a > b is actually true.