I found a simple example of compile-time arithmetic that doesn't work, at
least not when running under the latest POSE and compiler/IDE patches on a
Mac. Here's the code:
#define kTimeLimit 30 * 24 * 60 * 60
.
.
.
ULong secs;
secs = kTimeLimit;
When the variable secs is examined with the debugger after the assignment,
the value displayed is 4294937856, which is radically wrong. I've seen
evidence (but yet proof) that this happens when running it on the Palm
handheld itself.
Has anybody else seen this? Am I missing something, e.g., does the compiler
not support compile time arithmetic?
Thanks,
Mark Peters