preventing sign extension

David MacKenzie mackenzi at thor.stolaf.edu
Wed Jan 11 15:20:34 AEST 1989


Chris Torek has pointed out that the listing in DDJ is probably
missing a tilde, and thus that
>#define INTMASK	(long) ((unsigned) (0))
should be
>#define INTMASK	(long) ((unsigned) (~0))
and that seems right to me.  Thanks, Chris.

David MacKenzie
edf at rocky2.rockefeller.edu



More information about the Comp.lang.c mailing list