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

Unified Diff: runtime/vm/kernel.cc

Issue 2822943002: [dart:io] Adds ProcessInfo.{max,current}Rss. Adds OS::MaxRSS on Fuchsia. (Closed)
Patch Set: Fix Fuchsia build Created 3 years, 8 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
Index: runtime/vm/kernel.cc
diff --git a/runtime/vm/kernel.cc b/runtime/vm/kernel.cc
index 293f946592b9babbcaa7ebb65226015547d9a561..8c0e7884c5ef3dd6f47405ce09ba0185f9d2e4fd 100644
--- a/runtime/vm/kernel.cc
+++ b/runtime/vm/kernel.cc
@@ -80,7 +80,8 @@ bool CanonicalName::IsMember() {
// Note the two occurrences of the parameter 'literal'.
#define COMPARE_NAME(canonical_name, literal) \
- ((canonical_name)->name()->size() == strlen(literal) && \
+ ((canonical_name)->name()->size() == \
+ static_cast<intptr_t>(strlen(literal)) && \
memcmp((canonical_name)->name()->buffer(), (literal), strlen(literal)) == \
0)

Powered by Google App Engine
This is Rietveld 408576698