Index: src/inspector/string-16.cc |
diff --git a/src/inspector/string-16.cc b/src/inspector/string-16.cc |
index f6084602f421085127603f146f2c9618eb1b1962..ddccc09385c737e333c75975ff00644d95ae3116 100644 |
--- a/src/inspector/string-16.cc |
+++ b/src/inspector/string-16.cc |
@@ -377,7 +377,11 @@ String16 String16::fromInteger(int number) { |
String16 String16::fromInteger(size_t number) { |
const size_t kBufferSize = 50; |
char buffer[kBufferSize]; |
+#if !defined(_WIN32) && !defined(_WIN64) |
v8::base::OS::SNPrintF(buffer, kBufferSize, "%zu", number); |
+#else |
+ v8::base::OS::SNPrintF(buffer, kBufferSize, "%Iu", number); |
+#endif |
return String16(buffer); |
} |