Skip to content

Commit

Permalink
src: use %zx in printf for size_t
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
addaleax authored and targos committed Jun 14, 2018
1 parent d46446a commit 7fa1344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace node {
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);
}
Expand Down

0 comments on commit 7fa1344

Please sign in to comment.