Thread: Need a C++ guru
View Single Post
  #7  
Old 06-30-2009, 08:32 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Still true. In 32-bit, long is the same as int, so they're both being cast as signed ints at that point, changing b from 3000000000 to -1294967296, which is less than -1.
Reply With Quote