Skip to content

Commit 8f719a5

Browse files
committed
Fix precedence oops in dyncall ops. Fixes #136.
1 parent 21eee91 commit 8f719a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/parrot/ops/nqp_dyncall.ops

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ unmarshal_string(PARROT_INTERP, PMC *value, INTVAL type, INTVAL *free) {
409409
else {
410410
str = Parrot_str_to_encoded_cstring(interp,
411411
REPR(value)->box_funcs->get_str(interp, STABLE(value), OBJECT_BODY(value)),
412-
type & DYNCALL_ARG_TYPE_MASK == DYNCALL_ARG_ASCIISTR ? Parrot_ascii_encoding_ptr :
413-
type & DYNCALL_ARG_TYPE_MASK == DYNCALL_ARG_UTF16STR ? Parrot_utf16_encoding_ptr :
412+
(type & DYNCALL_ARG_TYPE_MASK) == DYNCALL_ARG_ASCIISTR ? Parrot_ascii_encoding_ptr :
413+
(type & DYNCALL_ARG_TYPE_MASK) == DYNCALL_ARG_UTF16STR ? Parrot_utf16_encoding_ptr :
414414
Parrot_utf8_encoding_ptr);
415415

416416
if (free && type & DYNCALL_ARG_FREE_STR_MASK) {

0 commit comments

Comments
 (0)