Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lcc-win32 bug report

4 views
Skip to first unread message

Colin Barker

unread,
May 7, 2009, 4:50:54 AM5/7/09
to
The following code gives an incorrect result:

#include <stdio.h>
int main(void)
{
long long t=15528312597606, b=1762289, x;
x=t-4*b;
(void)printf("x=%lld t-4b=%lld\n", x, t-4*b);
// Gives x=-15524308001630 t-4b=15528305548450
// The value of x is incorrect
return 1;
}

--
Colin

Friedrich Dominicus

unread,
May 8, 2009, 3:06:08 AM5/8/09
to
"Colin Barker" <colin....@wanadoo.fr> writes:

Thanks the bug was added to the bug reports.

Regards
Friedrich


--
Please remove just-for-news- to reply via e-mail.

jacob navia

unread,
May 8, 2009, 3:30:08 AM5/8/09
to


This has been fixed. Please reload lcc-win

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32

0 new messages