Skip to content

Commit f807ce2

Browse files
committed
expose coerce_in and _ni for direct int <-> num
without having to go through Int, in particular.
1 parent ea94370 commit f807ce2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,6 +2171,9 @@ QAST::MASTOperations.add_core_moarop_mapping('fromstr_I', 'coerce_sI');
21712171
QAST::MASTOperations.add_core_moarop_mapping('tonum_I', 'coerce_In');
21722172
QAST::MASTOperations.add_core_moarop_mapping('fromnum_I', 'coerce_nI');
21732173

2174+
QAST::MASTOperations.add_core_moarop_mapping('coerce_in', 'coerce_in');
2175+
QAST::MASTOperations.add_core_moarop_mapping('coerce_ni', 'coerce_ni');
2176+
21742177
# trig opcodes
21752178
QAST::MASTOperations.add_core_moarop_mapping('sin_n', 'sin_n');
21762179
QAST::MASTOperations.add_core_moarop_mapping('asin_n', 'asin_n');

0 commit comments

Comments
 (0)