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

Unified Diff: runtime/platform/json.cc

Issue 22377005: Fix warnings. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/json.cc
===================================================================
--- runtime/platform/json.cc (revision 25951)
+++ runtime/platform/json.cc (working copy)
@@ -234,7 +234,7 @@
if ((*s == '\n') || (*s == '\t')) {
OS::Print("Un-escaped character in JSON string: '%s'\n",
ValueChars());
- ASSERT(!"illegal character in JSON string value");
+ ASSERT("illegal character in JSON string value" == NULL);
Ivan Posva 2013/08/08 22:56:34 s/ASSERT/FATAL/ and remove the == NULL
}
s++;
remaining--;
@@ -251,7 +251,7 @@
default:
OS::Print("Malformed JSON: expected a value but got '%s'\n",
scanner_.TokenChars());
- ASSERT(!"illegal JSON value found");
+ ASSERT("illegal JSON value found" == NULL);
Ivan Posva 2013/08/08 22:56:34 ditto
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698