diff options
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r-- | src/node_buffer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_buffer.h b/src/node_buffer.h index acf9b23c3b3..b4aa12cbcfa 100644 --- a/src/node_buffer.h +++ b/src/node_buffer.h @@ -31,8 +31,7 @@ extern bool zero_fill_all_buffers; namespace Buffer { -static const unsigned int kMaxLength = - sizeof(int32_t) == sizeof(intptr_t) ? 0x3fffffff : 0x7fffffff; +static const unsigned int kMaxLength = v8::TypedArray::kMaxLength; typedef void (*FreeCallback)(char* data, void* hint); |