diff --git a/inc/BlueVM.h b/inc/BlueVM.h index 048c4af..f35ee3f 100644 --- a/inc/BlueVM.h +++ b/inc/BlueVM.h @@ -10,5 +10,6 @@ #include #include #include +#include #endif \ No newline at end of file diff --git a/src/bv_execute.c b/src/bv_execute.c index e305989..602eb3f 100644 --- a/src/bv_execute.c +++ b/src/bv_execute.c @@ -969,8 +969,8 @@ void bv_execute_assign(bv_scope* scope) bv_state* state = bv_scope_get_state(scope); - bv_variable var = bv_stack_penultimate(&scope->stack); - bv_variable val = bv_stack_top(&scope->stack); + bv_variable var = bv_stack_top(&scope->stack); + bv_variable val = bv_stack_penultimate(&scope->stack); bv_variable_op_assign(state->prog, &var, val);