Re: Win32 Integral size mismatch warnings.

From: Pat O'Laughlin (polaughlin@STARIX.NET)
Date: 08/24/98


This does NOT work.  Try again. ;-)


Pat

George wrote:

> Seems to be caused by GET_ROOM_VNUM macro, can people try this change?
>
> diff -u stk/utils.h conv/utils.h
> --- stk/utils.h Sun Jun 21 00:19:07 1998
> +++ conv/utils.h        Mon Aug 24 13:01:31 1998
> @@ -224,8 +224,10 @@
>
>  #define IS_LIGHT(room)  (!IS_DARK(room))
>
> -#define GET_ROOM_VNUM(rnum)    ((rnum) >= 0 && (rnum) <= top_of_world ? world[(rnum)].number : NOWHERE)
> -#define GET_ROOM_SPEC(room) ((room) >= 0 ? world[(room)].func : NULL)
> +#define GET_ROOM_VNUM(rnum)    \
> +       ((rnum) >= 0 && (rnum) <= top_of_world ? world[(rnum)].number : (room_vnum)NOWHERE)
> +#define GET_ROOM_SPEC(room)    \
> +       ((room) >= 0 && (room) <= top_of_world ? world[(room)].func : NULL)


     +------------------------------------------------------------+
     | 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