summaryrefslogtreecommitdiff
path: root/deps/v8/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/utils.h')
-rw-r--r--deps/v8/src/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/utils.h b/deps/v8/src/utils.h
index 1c9e3a6824..5c7afbec20 100644
--- a/deps/v8/src/utils.h
+++ b/deps/v8/src/utils.h
@@ -208,7 +208,7 @@ class BitFieldBase {
static const U kNext = kShift + kSize;
// Value for the field with all bits set.
- static const T kMax = static_cast<T>((1U << size) - 1);
+ static const T kMax = static_cast<T>((kOne << size) - 1);
// Tells whether the provided value fits into the bit field.
static bool is_valid(T value) {