Skip to content

Instantly share code, notes, and snippets.

@smellman
Created July 16, 2024 04:17
Show Gist options
  • Save smellman/7d573c4e8dbfc475cef107fa65a77eda to your computer and use it in GitHub Desktop.
Save smellman/7d573c4e8dbfc475cef107fa65a77eda to your computer and use it in GitHub Desktop.
--- 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