subject
cottrell at NBS-VMS
cottrell at NBS-VMS
Fri Mar 8 05:10:44 AEST 1985
/*
> #define MSB (~(-1>>1))
>
> Well know we know /* */'s name is Jim, anybody know what machine he is
> on. If only he would learn how to program and/or sign his path.
1) I didn't post the question, just the answer
2) Your solution doesn't work
3) You are a twit.
Even `~(((unsigned)(~0))>>1)' (the portable solution) doesn't work on V6.
Evidently the compiler gets confused about unsigned constants. Replacing
the cast with `x=' (where x has been declared unsigned) does work tho.
I thought the mailer would include the return address, so I never gave
it. However, this is not the first time I have seen a request for my
rtn adr from a uucp site. I now give it as a matter of course. We have
VAXen running VMS (yuk), 4.2BSD, a SUN, VME/10 (68K) SYS V port. There
are lots of other machines at The National Bureau of Standards.
jim cottrell at nbs
*/
More information about the Comp.lang.c
mailing list