Skip to content

Commit

Permalink
Merge pull request #707 from autarch/autarch/fix-large-numerator-Rat-…
Browse files Browse the repository at this point in the history
…literal

Just call $<nu>.ast.compile_time_value in Perl6::Actions.bare_rat_number
  • Loading branch information
lizmat committed Feb 7, 2016
2 parents 95e9655 + 2775261 commit 09181a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -7226,7 +7226,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
method rat_number($/) { make $<bare_rat_number>.ast }

method bare_rat_number($/) {
my $nu := @($<nu>.ast)[0].compile_time_value;
my $nu := $<nu>.ast.compile_time_value;
my $de := $<de>.ast;
my $ast := $*W.add_constant('Rat', 'type_new', $nu, $de, :nocache(1));
$ast.node($/);
Expand Down

0 comments on commit 09181a4

Please sign in to comment.