Re: [CODE] More fun!

From: Daniel A. Koepke (dkoepke@circlemud.org)
Date: 06/05/01


On Tue, 5 Jun 2001, Mike Breuer wrote:

> 1. negative numbers in the mob file would have to be converted to
> their unsigned equivalent, or the files will break (not a problem in
> the stock code, but a problem for people already hitting this
> limitation).

Negative numbers never worked to begin with.  If they changed it to work
right, then the patch wouldn't make a difference for them.

> 2. Since numbers like 2149580808 are out of range for a signed long, the
> behavior of atol (called when parsing values out of the file) is undefined.  I
> don't know of an unsigned equivalent to atol.

strtoul().


--
Daniel A. Koepke (dak), dkoepke@circlemud.org
Caveat emptor: I say what I mean and mean what I say.  Listen well.
Caveat venditor: Say what you mean, mean what you say.  Say it well.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST