diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-06-10 02:49:38 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-06-14 12:50:40 +0200 |
commit | 690475958e7cee8d254698cd080fc98d0075422b (patch) | |
tree | ae0156e975c835e20d99715cf8af6b84911bdf4d /src/node_errors.h | |
parent | 82db6729915e031814425360d2b8e7c83328697d (diff) | |
download | node-new-690475958e7cee8d254698cd080fc98d0075422b.tar.gz |
src: use `%zx` in printf for size_t
This fixes a compiler warning on Windows.
PR-URL: https://github.com/nodejs/node/pull/21323
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Diffstat (limited to 'src/node_errors.h')
-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); } |