Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
clean up some ops definitions
  • Loading branch information
cotto committed Feb 20, 2013
1 parent f8a37df commit f802b49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ops/nqp.ops
Expand Up @@ -2130,7 +2130,7 @@ Checks if the type of thing in $2 is a nqp list (either QRPA or RPA).

*/
inline op nqp_islist(out INT, invar PMC) :base_core {
$1 = nqp_islist($2)
$1 = nqp_islist($2);
}

/*
Expand All @@ -2143,7 +2143,7 @@ Checks if the type of thing in $2 is a nqp hash.

*/
inline op nqp_ishash(out INT, invar PMC) :base_core {
$1 = nqp_ishash($2)
$1 = nqp_ishash($2);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/ops/nqp_bigint.ops
Expand Up @@ -541,7 +541,7 @@ inline op nqp_bigint_pow(out PMC, invar PMC, invar PMC, invar PMC, invar PMC) :b


/* XXX a bit ugly that it reuses cmp, but safe for now */
cmp = mp_cmp_d(base, 0)
cmp = mp_cmp_d(base, 0);
if (MP_EQ == cmp || MP_EQ == mp_cmp_d(base, 1)) {
/* 0 ** $big_number and 1 ** big_number are easy to do: */
$1 = REPR($2)->allocate(interp, STABLE($2));
Expand Down
1 change: 0 additions & 1 deletion src/ops/nqp_dyncall.ops
Expand Up @@ -1040,7 +1040,6 @@ inline op nqp_native_call(out PMC, invar PMC, invar PMC, invar PMC) :base_core {
case DYNCALL_ARG_CSTRUCT:
dyncall_wb_cs(interp, value);
break;
default: /* Noop to eliminate warning. */
}
}

Expand Down

0 comments on commit f802b49

Please sign in to comment.