Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
benign prep for ~~ going chained -> structural
Just a couple places that will need parens in the future.
  • Loading branch information
TimToady committed Jul 24, 2015
1 parent 280e942 commit cf09f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Deprecations.pm
Expand Up @@ -58,7 +58,7 @@ sub DEPRECATED($alternative,$from?,$removed?,:$up = 1,:$what,:$file,:$line) {
my Version $vremoved;
if $from {
$vfrom = Version.new($from);
return if $version cmp $vfrom ~~ Less | Same; # can be better?
return if ($version cmp $vfrom) ~~ Less | Same; # can be better?
}
$vremoved = Version.new($removed) if $removed;

Expand Down
2 changes: 1 addition & 1 deletion src/core/Str.pm
Expand Up @@ -1719,7 +1719,7 @@ multi sub UNBASE(Int:D $base, Str:D $str) {
} else {
":{$base}<$str>".Numeric;
}
} elsif $ch eq ':' && substr($str, 1, 1) ~~ '1'..'9' {
} elsif $ch eq ':' && substr($str, 1, 1) ~~ ('1'..'9') {
$str.Numeric;
} else {
":{$base}<$str>".Numeric;
Expand Down

0 comments on commit cf09f8b

Please sign in to comment.