Browse Source
Since the minimum signed integer cannot be represented as positive so long as its type is signed, and it's not well-defined what happens if you make it unsigned before negating it, we instead increment the negative integer by 1, convert it, then increment the (now positive) unsigned integer by 1 to compensate0.8
Luke Dashjr
13 years ago
1 changed files with 3 additions and 9 deletions
Loading…
Reference in new issue