Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » A potential eclipse juno bug?(A potential bug)
A potential eclipse juno bug? [message #1019041] Thu, 14 March 2013 23:31 Go to next message
David W is currently offline David WFriend
Messages: 16
Registered: March 2013
Junior Member
Hi

I've found a problem and I think it might be an eclipse bug. Please see my attachment.

I am on redhat 5 x64 running juno. The following code prints out checkpoint2. However, eclipse grayed out checkpoint1 and checkpoint2 . Appraently, eclipse uses a different ULONG_MAX value as from the gcc compiler. Is this a bug from eclipse?

#include <stdio.h>
#include <limits.h>

int main()
{
printf("%llu\n", (unsigned long long) ULONG_MAX);
/* prints 18446744073709551615 and checkpoint2 */
/* but hover mouse over, the ULONG_MAX shows (9223372036854775807L * 2UL + 1UL) */

#if (ULONG_MAX >> 31) == 1 <---- grayed out
printf("checkpoint1\n");
#elif (ULONG_MAX >> 63) == 1 <---- grayed out
printf("checkpoint2\n");
#else
printf("checkpoint3\n");
#endif

return 0;
}
  • Attachment: error.jpg
    (Size: 108.67KB, Downloaded 99 times)
Re: A potential eclipse juno bug? [message #1019542 is a reply to message #1019041] Fri, 15 March 2013 23:58 Go to previous message
David W is currently offline David WFriend
Messages: 16
Registered: March 2013
Junior Member
Can someone just copy and paste the code and let me know if you see the same problem? Please make sure you use 64 bit machine.
Previous Topic:SWT Problem
Next Topic:Editing files opened through remote system explorer
Goto Forum:
  


Current Time: Fri Apr 26 09:39:38 GMT 2024

Powered by FUDForum. Page generated in 0.09358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top