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

Unified Diff: base/json/json_writer.cc

Issue 179373003: Fix build issues in base/ for Android x64 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use static_cast<size_t> directly Created 6 years, 10 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 | « base/i18n/rtl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_writer.cc
diff --git a/base/json/json_writer.cc b/base/json/json_writer.cc
index efe57ec5a338e43a61d7c06e8660d5eb58991c8b..d14c92c06e5a406d1c4a5b81d3764254ccaadc37 100644
--- a/base/json/json_writer.cc
+++ b/base/json/json_writer.cc
@@ -96,10 +96,10 @@ bool JSONWriter::BuildJSONString(const Value* const node, size_t depth) {
// The JSON spec requires that non-integer values in the range (-1,1)
// have a zero before the decimal point - ".52" is not valid, "0.52" is.
if (real[0] == '.') {
- real.insert(0U, 1U, '0');
+ real.insert(static_cast<size_t>(0), static_cast<size_t>(1), '0');
} else if (real.length() > 1 && real[0] == '-' && real[1] == '.') {
// "-.1" bad "-0.1" good
- real.insert(1U, 1U, '0');
+ real.insert(static_cast<size_t>(1), static_cast<size_t>(1), '0');
}
json_string_->append(real);
return result;
« no previous file with comments | « base/i18n/rtl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698