# New Ticket Created by Alex Jakimenko # Please include the string: [perl #127500] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127500 >
The problem is that 2**4553535345364535345634543534 returns 1 on OS X. Code: my $big-e = 4553535345364535345634543534; say (-2) ** $big-e Result (MoarVM on Linux): Numeric overflow in block <unit> at ./test.p6 line 3 Actually thrown at: in block <unit> at ./test.p6 line 3 Result (MoarVM on OS X): 1 Obviously, 1 is blatantly wrong. Relevant test changes: https://github.com/perl6/roast/commit/ccff90d3c7b959176fa8aba73a7b9c1070c3794c (which comes from this pull request: https://github.com/perl6/roast/pull/96) If you look at other tests in power.t you will see that there are some other tests that work differently on OS X. It seems like it is associated with the same problem. (https://github.com/perl6/roast/blob/master/S32-num/power.t)