Skip to content

Commit

Permalink
Complete the previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Jan 18, 2024
1 parent 110f222 commit 0522510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/round.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ cpp11::writable::doubles C_time_ceiling(const cpp11::doubles dt,
bool loop_origin = origin.size() != 1;
if (loop_origin && origin.size() != dt.size()) {
Rf_error("`origin` length (%lld) must be either 1 or the same as the length of the input date-time (%lld)\n",
origin.size(), dt.size());
static_cast<long long>(origin.size()), static_cast<long long>(dt.size()));
}

auto UN = adjust_rounding_unit(unit, nunits);
Expand Down Expand Up @@ -285,7 +285,7 @@ cpp11::writable::doubles C_time_floor(const cpp11::doubles dt,
bool loop_origin = origin.size() != 1;
if (loop_origin && origin.size() != dt.size()) {
Rf_error("`origin` length (%lld) must be either 1 or the same as the length of the input date-time (%lld)\n",
origin.size(), dt.size());
static_cast<long long>(origin.size()), static_cast<long long>(dt.size()));
}

auto UN = adjust_rounding_unit(unit, nunits);
Expand Down

0 comments on commit 0522510

Please sign in to comment.