> Also, the UL[L] should probably be on the inside of the (): > > stacklow => '(~0xfffULL)',
I still don't see this one is safer than my proposal. ~((uintptr_t) 0xfff); Anyway, we should use some kind of macro for this purpose. #ifndef foo #define foo(a) ((uintptr_t) (a)) #endif or #ifndef foo #define foo(a) (a##ull) #endif so the stacklow will read as stacklow => ~foo(0xfff) Hong