Skip to main content

push_wasm_ty_to_operand_stack

Function push_wasm_ty_to_operand_stack 

Source
pub fn push_wasm_ty_to_operand_stack<T>(value: T, stack: &mut Vec<Felt>)
where T: ToMidenRepr + PrimInt,
Expand description

Converts value to its corresponding Wasm ABI type and pushes it to the stack.

It differs from ToMidenRepr::push_to_operand_stack because it sign-extends i8 and i16 values to i32 before pushing them to the stack.