Re: [code][help][ERRORS!]

From: Daniel Koepke (
Date: 01/27/97

On Mon, 27 Jan 1997, The Riddler wrote:

> Help and here are there errors and the code below...

> structs.h:#define PRF_NOSOUL    (1 << 32) /* Soul Prayers*/
> is there anything wrong

Well, at least one of them (and maybe all of them) stem from this.
Longs (and integers on most 32b computers) are only 32 bits long.
Now, think for a moment, how many bits would you be using if you
had (1 << 32)?  Well, since 0 "counts" in C, (1 << 32) would be the
33rd bit.  Recall that you only have 32 bits availible and ta'da,
there is your problem!

Daniel Koepke
Forgive me father, for I am sin.

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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