Permalink
Browse files

Fix for new use of unbox_i.

  • Loading branch information...
1 parent ad03484 commit effbe85b608e9f590185981cf423714a2339bf2a @jnthn jnthn committed Aug 11, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/core/Temporal.pm
View
@@ -164,12 +164,12 @@ my class DateTime-local-timezone does Callable {
my $p = $dt.posix;
my ($year, $month, $day, $hour, $minute, $second);
my Mu $fia := pir::decodelocaltime__PI(nqp::unbox_i($p.Int));
- $second = nqp::p6box_i(nqp::atpos($fia, 0));
- $minute = nqp::p6box_i(nqp::atpos($fia, 1));
- $hour = nqp::p6box_i(nqp::atpos($fia, 2));
- $day = nqp::p6box_i(nqp::atpos($fia, 3));
- $month = nqp::p6box_i(nqp::atpos($fia, 4));
- $year = nqp::p6box_i(nqp::atpos($fia, 5));
+ $second = nqp::p6box_i(nqp::atpos_i($fia, 0));
+ $minute = nqp::p6box_i(nqp::atpos_i($fia, 1));
+ $hour = nqp::p6box_i(nqp::atpos_i($fia, 2));
+ $day = nqp::p6box_i(nqp::atpos_i($fia, 3));
+ $month = nqp::p6box_i(nqp::atpos_i($fia, 4));
+ $year = nqp::p6box_i(nqp::atpos_i($fia, 5));
DateTime\
.new(:$year, :$month, :$day, :$hour, :$minute, :$second)\
.posix - $p;

0 comments on commit effbe85

Please sign in to comment.