Skip to content

Commit

Permalink
Document magic number in $?BITS
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Aug 1, 2018
1 parent 64ab717 commit 2999d4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Actions.nqp
Expand Up @@ -7,6 +7,7 @@ use QAST;

my $wantwant := Mu;

# 2147483648 == 2**31. By adding 1 to it with add_i op, on 32-bit boxes it will overflow
my int $?BITS := nqp::isgt_i(nqp::add_i(2147483648, 1), 0) ?? 64 !! 32;

sub block_closure($code) {
Expand Down

0 comments on commit 2999d4f

Please sign in to comment.