Re: Problem with 32 bit ints

From: George (greerga@CIRCLEMUD.ORG)
Date: 05/30/98


On Sun, 31 May 1998, Chuck Carson wrote:

>As far as the code code, the value is correctly represented. Only the
>printf functions converts it, right? I just need the value to be accurate
>in memory.

Yup, although:

x.c:1: warning: decimal constant is so large that it is unsigned

You might want 2147999999UL.    (explicitly unsigned long constant)

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/          | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST