avm2: `pushshort` has an undocumented coercion step

This commit is contained in:
David Wendt 2020-11-27 00:42:40 -05:00 committed by Mike Welsh
parent 90e203b004
commit 6da658a845
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
} }
fn op_push_short(&mut self, value: u32) -> Result<FrameControl<'gc>, Error> { fn op_push_short(&mut self, value: u32) -> Result<FrameControl<'gc>, Error> {
self.context.avm2.push(value); self.context.avm2.push(value as i32);
Ok(FrameControl::Continue) Ok(FrameControl::Continue)
} }