Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ does not work anymore, use regex instead
  • Loading branch information
dagurval committed Sep 8, 2013
1 parent 3a7360b commit 2085077
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S02-types/int-uint.t
Expand Up @@ -14,7 +14,8 @@ for @inttypes -> $type {
}

my $maxval; my $minval;
my $len = +$type; # get the numeric value
$type ~~ /(\d+)/;
my $len = $/[0]; # get the numeric value
if $type ~~ /^uint/ {
$maxval = 2**$len - 1;
$minval = 0;
Expand Down

0 comments on commit 2085077

Please sign in to comment.