Strange behaviour, bug in Borland compiler?

  • Thread starter Markus Sandheide
  • Start date
M

Micah Cowan

Ron said:
That number is too big for a signed 32 bit int, so it's converted
to unsigned. The test should still work (1 gets promoted to unsigned
1).

As Jack Klein has already pointed out, such is not the case.

Would've caught me too: I forget that decimal literals don't work
the same as octal or hexadecimal.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,061
Latest member
KetonaraKeto

Latest Threads

Top