Skip to content

Commit 7fa1344

Browse files
addaleaxtargos
authored andcommitted
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 d46446a commit 7fa1344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_errors.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace node {
8484
inline v8::Local<v8::Value> ERR_BUFFER_TOO_LARGE(v8::Isolate* isolate) {
8585
char message[128];
8686
snprintf(message, sizeof(message),
87-
"Cannot create a Buffer larger than 0x%lx bytes",
87+
"Cannot create a Buffer larger than 0x%zx bytes",
8888
v8::TypedArray::kMaxLength);
8989
return ERR_BUFFER_TOO_LARGE(isolate, message);
9090
}

0 commit comments

Comments
 (0)