Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix C_TYPE_* constants for nums which also start at -1
  • Loading branch information
FROGGS committed Feb 14, 2015
1 parent f302b25 commit 8ae7b29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vm/moar/QAST/QASTOperationsMAST.nqp
Expand Up @@ -1935,9 +1935,9 @@ my %const_map := nqp::hash(
'C_TYPE_INT', -3,
'C_TYPE_LONG', -4,
'C_TYPE_LONGLONG', -5,
'C_TYPE_FLOAT', -6,
'C_TYPE_DOUBLE', -7,
'C_TYPE_LONGDOUBLE', -8,
'C_TYPE_FLOAT', -1,
'C_TYPE_DOUBLE', -2,
'C_TYPE_LONGDOUBLE', -3,
);
QAST::MASTOperations.add_core_op('const', -> $qastcomp, $op {
if nqp::existskey(%const_map, $op.name) {
Expand Down

0 comments on commit 8ae7b29

Please sign in to comment.