There we go. The compiler can't possibly do the cast and the bitwise ~ in an unfortunate order and come up with something strange in the high bits. #ifndef NDEBUG #define NOPOINTERS(a, type) (a & (~((type) 0))) #else #define NOPOINTERS(a, type) a #endif Regards, Clayton Weaver <mailto:[EMAIL PROTECTED]> (Seattle) "Everybody's ignorant, just in different subjects." Will Rogers - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [EMAIL PROTECTED]
- [OT] (pointer test) #define NOPOINTERS(a, type) (a & ((... Clayton Weaver
- Clayton Weaver
