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