--- Josh <[EMAIL PROTECTED]> wrote:

[SNIP]

>            return( IS_SET( mob->mprog_target->said_flags, 2^(say-1) ) );

As Edwin already pointed out, ^ is the bitwise exclusive or operator, not the
power of operator. For powers of two it is often conviniant to use the << or
left shift operator. 1<<0 == 1, 1<<1 == 2, 1<<2 == 4, 1<<3 == 8, etc. Try that
and perhaps you will have better luck.

~Kender

=====
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/L/C/O d-(+) s++:+ a-- C+++$>++++ UBLS++++$ 
P+++(--)$ L++>+++ E--- W+>++$ N !o K? w(--) !O 
M- !V PS+ PE(++) Y+ PGP->+ t- 5 X+() R(+) tv+@ 
b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
------END GEEK CODE BLOCK------

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

Reply via email to