Welcome, Guest. Please login or register.

Author Topic: StormC 64-bit arithmetic bug?  (Read 2155 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MinuousTopic starter

StormC 64-bit arithmetic bug?
« on: September 17, 2004, 01:13:00 AM »
I seem to have found a bug in StormC? Try the following in "StormC 3" mode:

void main(void)
{   long long number;

    number = 10;
    number *= 2;
    printf("%Ld!\n", number);
}

The answer should be 20 but is not...!

On a related subject, does anyone have documentation for the undocumented AG2Index and GenDictionaries tools supplied with StormC 4?
 

Offline MinuousTopic starter

Re: StormC 64-bit arithmetic bug?
« Reply #1 on: September 25, 2004, 01:58:52 PM »
I'm actually using StormC 4.0, but with the StormC 3 compiler engine. In ANSI C mode, not C++, by the way.

And %Ld is correct for 64-bit signed decimals.