home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11616 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!uunet.ca!wildcan!sq!msb
  3. From: msb@sq.sq.com (Mark Brader)
  4. Subject: Re: unsigned long to long without lossage (Help)
  5. Message-ID: <1992Jul26.065623.14972@sq.sq.com>
  6. Organization: SoftQuad Inc., Toronto, Canada
  7. References: <1992Jul17.201215.19749@wyvern.twuug.com> <0.211127068126@kiae.su>
  8. Date: Sun, 26 Jul 92 06:56:23 GMT
  9. Lines: 16
  10.  
  11. > There is NO WAY to portably convert unsigned long to long
  12. > without lossage, because unsigned long can have 64 bits, but long -
  13. > 53 bits (as in one xSoviet mainframe "Elbrus") :-)
  14.  
  15. Is the ":-)" intended to imply that the whole statement was a joke and
  16. there is no machine with such a property, or is it something else?
  17. If it is not a joke, then more information about data types on the
  18. machine would be of interest.
  19.  
  20. The ANSI/ISO C standard requires long and unsigned long to be the same
  21. size, and I never before heard of a C implementation where they are not.
  22. -- 
  23. Mark Brader, Toronto        "Mark is probably right about something,
  24. utzoo!sq!msb, msb@sq.com     but I forget what"    -- Rayan Zachariassen
  25.  
  26. This article is in the public domain.
  27.