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

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

Issue 2389133004: [inspector] fix compilation on win and linux (Closed)
Patch Set: 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 | « no previous file | test/inspector/inspector-test.cc » ('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 e0cf0059a6f7f31abbbbabbed19e8ea3a94d6282..e39b87c17f8f035201e9ea4b4835ea3da6c52800 100644
--- a/src/inspector/string-16.cc
+++ b/src/inspector/string-16.cc
@@ -375,7 +375,7 @@ String16 String16::fromInteger(int number) {
String16 String16::fromInteger(size_t number) {
const size_t kBufferSize = 50;
char buffer[kBufferSize];
- std::snprintf(buffer, kBufferSize, "%zu", number);
+ v8::base::OS::SNPrintF(buffer, kBufferSize, "%zu", number);
return String16(buffer);
}
« no previous file with comments | « no previous file | test/inspector/inspector-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698