Clarify calculation precedence for & and ?.

(a & b ? c : d)-like expressions are changed to ((a & b) ? c : d).

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-08-27 16:32:08 +03:00
parent bf780ad3dc
commit 845b0d5006
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1154,7 +1154,7 @@ dump_call_additional_info (opcode_call_flags_t flags, /**< call flags */
const vm_instr_t instr = getop_meta (OPCODE_META_TYPE_CALL_SITE_INFO,
flags,
(idx_t) (flags & OPCODE_CALL_FLAGS_HAVE_THIS_ARG
(idx_t) ((flags & OPCODE_CALL_FLAGS_HAVE_THIS_ARG)
? this_arg.data.uid
: INVALID_VALUE));