added overflow checking to swf_SetS16().