Created
July 16, 2024 04:17
-
-
Save smellman/7d573c4e8dbfc475cef107fa65a77eda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/3rdparty/chromium/v8/src/base/bit-field.h.orig 2024-07-16 13:14:42 | |
+++ src/3rdparty/chromium/v8/src/base/bit-field.h 2024-07-16 13:16:11 | |
@@ -40,7 +40,7 @@ | |
static constexpr U kNumValues = U{1} << kSize; | |
// Value for the field with all bits set. | |
- static constexpr T kMax = static_cast<T>(kNumValues - 1); | |
+ static constexpr T kMax = static_cast<T>((1U << kBits) - 1); | |
template <class T2, int size2> | |
using Next = BitField<T2, kShift + kSize, size2, U>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment