Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use add_numeric_constant for numeric constant
  • Loading branch information
moritz committed Nov 11, 2011
1 parent 3d97eda commit 7c6a4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -3419,7 +3419,7 @@ class Perl6::Actions is HLL::Actions {
my $radix := +($<radix>.Str);
if $<circumfix> {
make PAST::Op.new(:name('&unbase'), :pasttype('call'),
$*ST.add_constant('Int', 'int', $radix), $<circumfix>.ast);
$*ST.add_numeric_constant('Int', $radix), $<circumfix>.ast);
} else {
my $intpart := $<intpart>.Str;
my $fracpart := $<fracpart> ?? $<fracpart>.Str !! "0";
Expand Down

0 comments on commit 7c6a4a6

Please sign in to comment.