Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't cache Rat literals
  • Loading branch information
TimToady committed Apr 13, 2015
1 parent 0b1e4f1 commit 872d74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -5835,7 +5835,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
method bare_rat_number($/) {
my $nu := $*W.add_constant('Int', 'int', +~$<nu>);
my $de := $*W.add_constant('Int', 'int', +~$<de>);
make $*W.add_constant('Rat', 'type_new', $nu.compile_time_value, $de.compile_time_value);
make $*W.add_constant('Rat', 'type_new', $nu.compile_time_value, $de.compile_time_value, :nocache(1));
}

method bare_complex_number($/) {
Expand Down

0 comments on commit 872d74c

Please sign in to comment.