Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
DashAnimal
2y ago
0 comments
Save
Share
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.
0 comments
No comments yet.