From 7fa13441433361084cb7be6440c168b2cd0760e5 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 10 Jun 2018 02:49:38 +0200 Subject: [PATCH] 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 Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Ujjwal Sharma Reviewed-By: Bartosz Sosnowski --- src/node_errors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_errors.h b/src/node_errors.h index e13204fd8fe4c2..976b864a67021a 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -84,7 +84,7 @@ namespace node { inline v8::Local 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); }