XSendEvent followup -- problems with masks

Doug Gwyn gwyn at smoke.brl.mil
Tue Dec 11 06:49:19 AEST 1990


In article <1990Dec9.234737.14868 at csis.dit.csiro.au> ken at csis.dit.csiro.au (Ken Yap) writes:
>>  #define XtAllEvents ((EventMask) -1L) /* 0xFFFFFFFF */
>Tsk. Did some Xt programmer assume all the world's a 2's complement machine?

Apparently.  Of course, a proper expression would be
	#define XtAllEvents ((EventMask)~0L)



More information about the Comp.lang.c mailing list