diff options
author | Jan Marvin Garbuszus | 2023-10-20 19:28:09 +0200 |
---|---|---|
committer | Jan Marvin Garbuszus | 2023-10-20 19:28:09 +0200 |
commit | 3489ffee8669be10500c6d6fae48ad07bb383957 (patch) | |
tree | 12155b69a24bc1941781a6fbbeda91d33d0cb820 /include_ifdef.diff | |
parent | b47a5bc6d0517f7cfb92968ad13f6e1710e7dff3 (diff) | |
download | aur-3489ffee8669be10500c6d6fae48ad07bb383957.tar.gz |
12.0.171
Diffstat (limited to 'include_ifdef.diff')
-rw-r--r-- | include_ifdef.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include_ifdef.diff b/include_ifdef.diff new file mode 100644 index 000000000000..af0037c56236 --- /dev/null +++ b/include_ifdef.diff @@ -0,0 +1,17 @@ +diff --git a/include/v8-typed-array.h b/include/v8-typed-array.h +index bd8245062ff..4e78915b896 100644 +--- a/include/v8-typed-array.h ++++ b/include/v8-typed-array.h +@@ -23,10 +23,10 @@ class V8_EXPORT TypedArray : public ArrayBufferView { + * The largest supported typed array byte size. Each subclass defines a + * type-specific kMaxLength for the maximum length that can be passed to New. + */ +-#if V8_ENABLE_SANDBOX ++#ifdef V8_ENABLE_SANDBOX + static constexpr size_t kMaxByteLength = + internal::kMaxSafeBufferSizeForSandbox; +-#elif V8_HOST_ARCH_32_BIT ++#elif defined(V8_HOST_ARCH_32_BIT) + static constexpr size_t kMaxByteLength = std::numeric_limits<int>::max(); + #else + // The maximum safe integer (2^53 - 1). |