From 427dd83d99a8be47ff306dc18f7a381907a3cbeb Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Tue, 14 Oct 2014 18:48:22 +0400 Subject: [PATCH] Fixing postfix increment and postfix decrement opcodes handlers. --- src/libcoreint/opcodes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcoreint/opcodes.c b/src/libcoreint/opcodes.c index a6f270e2c..effab8c6d 100644 --- a/src/libcoreint/opcodes.c +++ b/src/libcoreint/opcodes.c @@ -288,7 +288,7 @@ opfunc_post_incr (opcode_t opdata, /**< operation data */ // assignment of operator result to register variable ecma_completion_value_t reg_assignment_res = set_variable_value (int_data, dst_var_idx, - old_value.u.value); + old_num_value.u.value); JERRY_ASSERT (ecma_is_completion_value_empty (reg_assignment_res)); ECMA_FINALIZE (old_num_value); @@ -336,7 +336,7 @@ opfunc_post_decr (opcode_t opdata, /**< operation data */ // assignment of operator result to register variable ecma_completion_value_t reg_assignment_res = set_variable_value (int_data, dst_var_idx, - old_value.u.value); + old_num_value.u.value); JERRY_ASSERT (ecma_is_completion_value_empty (reg_assignment_res)); ECMA_FINALIZE (old_num_value);