Re: Win32 Integral size mismatch warnings.

From: George (greerga@CIRCLEMUD.ORG)
Date: 08/24/98


On Mon, 24 Aug 1998, d. hall wrote:

>>>>>> thus on Mon, 24 Aug 1998 13:08:37 -0400, George wrote:
>
>> Seems to be caused by GET_ROOM_VNUM macro, can people try this change?
>
>> +#define GET_ROOM_VNUM(rnum)    \
>> +       ((rnum) >= 0 && (rnum) <= top_of_world ? world[(rnum)].number : (room_vnum)NOWHERE)
>
>Does structs.h need to be #include'ed first in order to clarify the typedef
>for room_vnum, to insure typecast sanity?

Structs.h has to be included before utils.h, and always is.  I have a list
of all the integral mismatch warnings from someone with Windows and at
least the first three (all I checked) coincided with GET_ROOM_VNUM.  Hm...

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/ (not done) | 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