Welcome, Guest. Please login or register.

Author Topic: Longs, ints and printf (ansi-C)  (Read 2359 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Kronos

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show all replies
    • http://www.SteamDraw.de
Re: Longs, ints and printf (ansi-C)
« on: March 14, 2004, 12:19:46 PM »
a) nope, "int" has allways been CPU-specific, and was 16bit on 16bit CPUs.

b) dunno, I can printf (U)LONG, what compiler are you useing ?

c) ???? it seems that you/the compiler is interpreting an unsigned
int as an signed int. Have a real close look at your sources,
or post them here.

d) you mean 1500000000+1000000000 doesn't end up negative ?
Probraly the CPU truncating everything that would go beond
0xafffffff.
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else