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

LCC-Win32 labs bug

0 views
Skip to first unread message

Jason Hood

unread,
Jun 27, 2009, 8:21:02 PM6/27/09
to
There's a bug with labs - it just clears the sign bit.

C:\Language\lcc>lcc -v
Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Jun 22
2009 18:05:34

C:\Language\lcc>type labs.c
#include <stdio.h>
#include <stdlib.h>

int main( void )
{
printf( "labs( -1 ) = %ld\n", labs( -1 ) );

return 0;
}

C:\Language\lcc>lc labs.c

C:\Language\lcc>labs
labs( -1 ) = 2147483647

Jason.

jacob navia

unread,
Jun 28, 2009, 1:10:33 PM6/28/09
to

Fixed in the latest version.

Thanks for your help

0 new messages