commit | cc88ac052b7d86a19a2f553e1b47037e0250c639 | [log] [tgz] |
---|---|---|
author | Peter Kasting <[email protected]> | Tue May 03 09:58:01 2022 |
committer | Chromium LUCI CQ <[email protected]> | Tue May 03 09:58:01 2022 |
tree | a885a78a6d215baa1787036c2d954dfb2613e633 | |
parent | 7168ba9a79d63789e8fce87159510437dcd28278 [diff] [blame] |
Put bit_cast<>() into the base:: namespace. This helps prevent ambiguous symbol issues in C++20 and should have been the case anyway. Bug: 1284275 Change-Id: I86210c7b1c8133e8c872930e9e1fdf86b663e104 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3615258 Auto-Submit: Peter Kasting <[email protected]> Reviewed-by: Hongchan Choi <[email protected]> Reviewed-by: Lei Zhang <[email protected]> Owners-Override: Lei Zhang <[email protected]> Commit-Queue: Peter Kasting <[email protected]> Cr-Commit-Position: refs/heads/main@{#998789}
diff --git a/components/segmentation_platform/internal/segmentation_ukm_helper.cc b/components/segmentation_platform/internal/segmentation_ukm_helper.cc index 9c509f3..66efef7 100644 --- a/components/segmentation_platform/internal/segmentation_ukm_helper.cc +++ b/components/segmentation_platform/internal/segmentation_ukm_helper.cc
@@ -197,7 +197,7 @@ // static int64_t SegmentationUkmHelper::FloatToInt64(float f) { // Encode the float number in IEEE754 double precision. - return bit_cast<int64_t>(static_cast<double>(f)); + return base::bit_cast<int64_t>(static_cast<double>(f)); } } // namespace segmentation_platform