what version are you using? as far as i know this doesn't happen anymore since a while but you can fix it like that:

while((my != NULL) && (my.anim_state != anim_stop))

or

while((long)my && (my.anim_state != anim_stop))