Hi,

I have just installed Lite-C, so I'm very new to this =)

I am getting this error:


Here is the code:
Code:
TYPEVAR INVIsAllowed(RPGInventory* Inv,RPGItem* Item)
{
return(Inv->AllowedItems & Item->ItemType);
}


AllowedItems and ItemType are both of the type "short" (defined as TYPEVAR).

I bet the problem might be the &-operator - isn't it available in Lite-C??

EDIT:
This works neither:
Code:
TYPEVAR INVIsAllowed(RPGInventory* Inv,RPGItem* Item)
{
TYPEVAR tmp = Inv->AllowedItems & Item->ItemType;
return(tmp);
}


The error occurs at the return-line.

Last edited by Claus_N; 05/28/07 13:11.