Re: [CODE][NEWBIE] Compilation warnings

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 08/18/97


On Sun, 29 Jun 1997, Mark Young wrote:

>I'm trying to add a new AFF flag and i'm getting the following
>compilation warnings:
>
>magic.c: In function `mag_affects':
>magic.c:482: warning: left shift count >= width of type
>magic.c:500: warning: left shift count >= width of type

You can't go above (1 << 31).
You'll have to either convert to 128-bit or make another variable.

--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- 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/08/00 PST