Skip to content

Commit 6904759

Browse files
committed
src: use %zx in printf for size_t
This fixes a compiler warning on Windows. PR-URL: #21323 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: Bartosz Sosnowski <[email protected]>
1 parent 82db672 commit 6904759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_errors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ inline void THROW_ERR_SCRIPT_EXECUTION_TIMEOUT(Environment* env,
9999
inline v8::Local<v8::Value> ERR_BUFFER_TOO_LARGE(v8::Isolate* isolate) {
100100
char message[128];
101101
snprintf(message, sizeof(message),
102-
"Cannot create a Buffer larger than 0x%lx bytes",
102+
"Cannot create a Buffer larger than 0x%zx bytes",
103103
v8::TypedArray::kMaxLength);
104104
return ERR_BUFFER_TOO_LARGE(isolate, message);
105105
}

0 commit comments

Comments
 (0)