Skip to content
Commit 2fe249ae authored by Peter Kasting's avatar Peter Kasting Committed by Copybara-Service
Browse files

Fix C++20 build.

std::string::max_size() is constexpr in C++20, which lets the compiler
determine that a comparison can never succeed.  Cast to prevent a
resulting warning.

Bug: 1284275
Change-Id: Ib56f3a9a114b9f3d2210df7846869f9452a60a58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3649750


Reviewed-by: default avatarSatoru Takabayashi <satorux@chromium.org>
Commit-Queue: Satoru Takabayashi <satorux@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1004522}
NOKEYCHECK=True
GitOrigin-RevId: 997528f9568938b61c551ff62315ecc0d1385b05
parent a41a88a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment