aboutsummaryrefslogtreecommitdiff
path: root/absl/time
diff options
context:
space:
mode:
authorDerek Mauro <dmauro@google.com>2024-02-12 09:43:50 -0800
committerCopybara-Service <copybara-worker@google.com>2024-02-12 09:45:21 -0800
commit34604d5b1f6ae14c65b3992478b59f7108051979 (patch)
treec17064f78ee073d0c421182bbe3555010b43c25d /absl/time
parent119e0d3f74733aff2999d39cb8be99ddcb081c66 (diff)
downloadabseil-34604d5b1f6ae14c65b3992478b59f7108051979.tar.gz
abseil-34604d5b1f6ae14c65b3992478b59f7108051979.tar.bz2
abseil-34604d5b1f6ae14c65b3992478b59f7108051979.zip
Remove deprecated symbol absl::kuint128max
absl::kuint128max should be replaced with absl::Uint128Max() PiperOrigin-RevId: 606279299 Change-Id: Ib67b5431f14891f56bb706e62f183d0de75d335f
Diffstat (limited to 'absl/time')
-rw-r--r--absl/time/duration.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/time/duration.cc b/absl/time/duration.cc
index bdb16e21..13b268c0 100644
--- a/absl/time/duration.cc
+++ b/absl/time/duration.cc
@@ -219,7 +219,7 @@ struct SafeMultiply {
? static_cast<uint128>(Uint128Low64(a) * Uint128Low64(b))
: a * b;
}
- return b == 0 ? b : (a > kuint128max / b) ? kuint128max : a * b;
+ return b == 0 ? b : (a > Uint128Max() / b) ? Uint128Max() : a * b;
}
};