Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: src/inspector/string-16.cc

Issue 2450653002: [inspector] enable inspector by default (Closed)
Patch Set: disable debugger after test Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/d8.cc ('k') | test/inspector/protocol-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/d8.cc ('k') | test/inspector/protocol-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698