Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
need to decont the Int value before isbig_I will work.
  • Loading branch information
timo committed Apr 14, 2013
1 parent 6e39296 commit ee68af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Optimizer.pm
Expand Up @@ -398,7 +398,7 @@ class Perl6::Optimizer {
}
# if it's an Int, we can create a Want from it witth an int value.
try {
if nqp::istype($ret_value, self.find_in_setting("Int")) && !nqp::isbig_I($ret_value) {
if nqp::istype($ret_value, self.find_in_setting("Int")) && !nqp::isbig_I(nqp::decont($ret_value)) {
return QAST::Want.new($wval,
"Ii", QAST::IVal.new(:value(nqp::unbox_i($ret_value))));
}
Expand Down

0 comments on commit ee68af8

Please sign in to comment.