Re: Bit Flags

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 06/05/01


Mike Breuer wrote:
>
> 1 is assumed by the compiler to be an integer, and then left shifted 32
> positions which should result in 0 on a 32-bit platform.  To get around this,
> I created a macro:

You don't need a macro, (1ULL << 32) works fine.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST