Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace bitshift +> with div operator
Reads better (imho). Works around RT#121909 which is currently resulting in significant failures in S03-temporal on parrot.
  • Loading branch information
dwarring committed May 19, 2014
1 parent 277212e commit d7ae021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Temporal.pm
Expand Up @@ -40,10 +40,10 @@ my role Dateish {
my int $day = $daycount.Int + 678881;
my int $t = (4 * ($day + 36525)) div 146097 - 1;
my int $year = 100 * $t;
$day = $day - (36524 * $t + ($t +> 2));
$day = $day - (36524 * $t + ($t div 4));
$t = (4 * ($day + 366)) div 1461 - 1;
$year = $year + $t;
$day = $day - (365 * $t + ($t +> 2));
$day = $day - (365 * $t + ($t div 4));
my int $month = (5 * $day + 2) div 153;
$day = $day - ((2 + $month * 153) div 5 - 1);
if ($month > 9) {
Expand Down

0 comments on commit d7ae021

Please sign in to comment.