summaryrefslogtreecommitdiff
path: root/absl/time/internal/test_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/time/internal/test_util.cc')
-rw-r--r--absl/time/internal/test_util.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/time/internal/test_util.cc b/absl/time/internal/test_util.cc
index 454b33a1..4b7849c6 100644
--- a/absl/time/internal/test_util.cc
+++ b/absl/time/internal/test_util.cc
@@ -84,14 +84,15 @@ class TestZoneInfoSource : public cctz::ZoneInfoSource {
: data_(data), end_(data + size) {}
std::size_t Read(void* ptr, std::size_t size) override {
- const std::size_t len = std::min<std::size_t>(size, end_ - data_);
+ const std::size_t len =
+ std::min(size, static_cast<std::size_t>(end_ - data_));
memcpy(ptr, data_, len);
data_ += len;
return len;
}
int Skip(std::size_t offset) override {
- data_ += std::min<std::size_t>(offset, end_ - data_);
+ data_ += std::min(offset, static_cast<std::size_t>(end_ - data_));
return 0;
}