Skip to content

Commit

Permalink
32bit detection that works on the js backend too
Browse files Browse the repository at this point in the history
Do simple arithmetic rather then depending on weird NQP implementation details.
  • Loading branch information
pmurias committed Apr 25, 2017
1 parent f0414c4 commit 6c82490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -7,7 +7,7 @@ use QAST;

my $wantwant := Mu;

my int $?BITS := nqp::iseq_i(0x1ffffffff,8589934591) ?? 64 !! 32;
my int $?BITS := nqp::isgt_i(nqp::add_i(2147483648, 1), 0) ?? 64 !! 32;

sub block_closure($code) {
my $closure := QAST::Op.new(
Expand Down

0 comments on commit 6c82490

Please sign in to comment.