diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2022-11-16 10:45:51 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2022-11-16 11:35:49 +0000 |
commit | 4390a3595e2e87fa13c70307c4a7f5f0be470e5e (patch) | |
tree | b326f272c777e50e61b9c49c8089d55645edf4cb | |
parent | 06b43dda48b45fd3ed264114400d7040eaa039d2 (diff) | |
download | qtwebengine-chromium-4390a3595e2e87fa13c70307c4a7f5f0be470e5e.tar.gz |
[Backport] Correct initializer that is not C++11 compliant
https://en.cppreference.com/w/cpp/language/aggregate_initialization#Notes
“Until C++11, narrowing conversions were permitted in aggregate
initialization, but they are no longer allowed.”
Bug: 819294
Change-Id: I95ce7cd4920ae6f7485b11c20873948f309feb42
Review-URL: https://chromium-review.googlesource.com/c/chromium/src/+/3968638
Cr-Commit-Position: refs/heads/main@{#1061771}
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/443635
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | chromium/third_party/ipcz/src/ipcz/buffer_id.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/ipcz/src/ipcz/buffer_id.h b/chromium/third_party/ipcz/src/ipcz/buffer_id.h index 763a436d1de..545babb8123 100644 --- a/chromium/third_party/ipcz/src/ipcz/buffer_id.h +++ b/chromium/third_party/ipcz/src/ipcz/buffer_id.h @@ -16,7 +16,7 @@ namespace ipcz { // either side of the NodeLink. using BufferId = StrongAlias<class BufferIdTag, uint64_t>; -constexpr BufferId kInvalidBufferId{~0}; +constexpr BufferId kInvalidBufferId{UINT64_MAX}; } // namespace ipcz |