Skip to content

Commit 2c90928

Browse files
committed
Use value types instead of reference types.
The C99 standard does not support reference types. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
1 parent 433f070 commit 2c90928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jerry-core/ecma/operations/ecma-comparison.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ ecma_op_abstract_relational_compare (ecma_value_t x, /**< first operand */
346346
ecma_op_to_primitive (second_converted_value, ECMA_PREFERRED_TYPE_NUMBER),
347347
ret_value);
348348

349-
const ecma_value_t &px = left_first ? prim_first_converted_value : prim_second_converted_value;
350-
const ecma_value_t &py = left_first ? prim_second_converted_value : prim_first_converted_value;
349+
const ecma_value_t px = left_first ? prim_first_converted_value : prim_second_converted_value;
350+
const ecma_value_t py = left_first ? prim_second_converted_value : prim_first_converted_value;
351351

352352
const bool is_px_string = ecma_is_value_string (px);
353353
const bool is_py_string = ecma_is_value_string (py);

0 commit comments

Comments
 (0)