home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17378 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.1 KB  |  26 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!usc!howland.reston.ans.net!wupost!eclnews!wucs1!amc
  3. From: amc@wucs1.wustl.edu (Adam Costello)
  4. Subject: Re: Bug in SAS/C V6.1?
  5. Message-ID: <1992Dec15.103850.21786@wuecl.wustl.edu>
  6. Sender: usenet@wuecl.wustl.edu (News Administrator)
  7. Nntp-Posting-Host: wucs1
  8. Organization: Washington University, St. Louis MO
  9. References: <S37732V.92Dec11104414@lk-hp-12.hut.fi> <Bz3nvr.82D@unx.sas.com> <1992Dec15.003553.23198@oracle.us.oracle.com>
  10. Distribution: comp
  11. Date: Tue, 15 Dec 1992 10:38:50 GMT
  12. Lines: 12
  13.  
  14. In article <1992Dec15.003553.23198@oracle.us.oracle.com> dnavas@oracle.uucp (David Navas) writes:
  15. >
  16. >Really, ~0 is NOT the same thing as -1.  Not -all- computers in existance
  17. >are two's complement, you know -- and the symbols mean something different
  18. >too.  Had I meant -1, I'd say -1, had I mean ~0, I'll say ~0.  Having to
  19. >cast ~0 back to an unsigned state is, well, icky....
  20. >
  21. >Would you at least be kind enough to make ~0x0 be unsigned?
  22.  
  23. How about   ~0u   ?  I think that should be the same as
  24. (unsigned int) ~0   to any ANSI C compiler.
  25. AMC
  26.