diff options
-rw-r--r-- | src/node_errors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_errors.h b/src/node_errors.h index f767b414fa..fdfb670af6 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -99,7 +99,7 @@ inline void THROW_ERR_SCRIPT_EXECUTION_TIMEOUT(Environment* env, inline v8::Local<v8::Value> ERR_BUFFER_TOO_LARGE(v8::Isolate* isolate) { char message[128]; snprintf(message, sizeof(message), - "Cannot create a Buffer larger than 0x%lx bytes", + "Cannot create a Buffer larger than 0x%zx bytes", v8::TypedArray::kMaxLength); return ERR_BUFFER_TOO_LARGE(isolate, message); } |