04-30-2007 11:57 AM
04-30-2007 12:05 PM - edited 04-30-2007 12:05 PM
Message Edited by smercurio_fc on 04-30-2007 12:06 PM
04-30-2007 01:17 PM
You can also change the type of the enum diagram constant to U32.
Still, I agree with you that it should work as you expect and not as it currently does. A One is a One is a One... after all.
It should not depend on the representation of the players. Am I missing something?
04-30-2007 01:25 PM
This function can generate unexpected data if x and type are not the same size. If x is of a larger data type than type, this function uses the upper bytes of x and discards the remaining lower bytes. If x is of a smaller data type than type, this function moves the data in x to the upper bytes of type and fills the remaining bytes with zeros. For example, a U8 with value 1 type cast to a U16 will result in a value of 256.
So, in the case of the input being an I32 and the enum being a U16, the Type Cast is convert the upper bytes of the I32, which are all zero.04-30-2007 01:41 PM
04-30-2007 01:45 PM