Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix precedence oops in dyncall ops. Fixes #136.
  • Loading branch information
arnsholt committed Oct 6, 2013
1 parent 21eee91 commit 8f719a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/parrot/ops/nqp_dyncall.ops
Expand Up @@ -409,8 +409,8 @@ unmarshal_string(PARROT_INTERP, PMC *value, INTVAL type, INTVAL *free) {
else {
str = Parrot_str_to_encoded_cstring(interp,
REPR(value)->box_funcs->get_str(interp, STABLE(value), OBJECT_BODY(value)),
type & DYNCALL_ARG_TYPE_MASK == DYNCALL_ARG_ASCIISTR ? Parrot_ascii_encoding_ptr :
type & DYNCALL_ARG_TYPE_MASK == DYNCALL_ARG_UTF16STR ? Parrot_utf16_encoding_ptr :
(type & DYNCALL_ARG_TYPE_MASK) == DYNCALL_ARG_ASCIISTR ? Parrot_ascii_encoding_ptr :
(type & DYNCALL_ARG_TYPE_MASK) == DYNCALL_ARG_UTF16STR ? Parrot_utf16_encoding_ptr :
Parrot_utf8_encoding_ptr);

if (free && type & DYNCALL_ARG_FREE_STR_MASK) {
Expand Down

0 comments on commit 8f719a5

Please sign in to comment.