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

Unified Diff: mojo/android/system/core_impl.cc

Issue 841443006: Fix signed/unsigned comparison mismatch (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: mojo/android/system/core_impl.cc
diff --git a/mojo/android/system/core_impl.cc b/mojo/android/system/core_impl.cc
index 1971cac10e5f76fcebdb9b7082221ab0aa596c65..55a374e50bcba68e1bff0ef41548c9278b2052a6 100644
--- a/mojo/android/system/core_impl.cc
+++ b/mojo/android/system/core_impl.cc
@@ -163,7 +163,7 @@ static jint Wait(JNIEnv* env,
DCHECK(buffer_start);
DCHECK_EQ(reinterpret_cast<const uintptr_t>(buffer_start) % 8, 0u);
DCHECK_EQ(sizeof(struct MojoHandleSignalsState),
- env->GetDirectBufferCapacity(buffer));
+ static_cast<size_t>(env->GetDirectBufferCapacity(buffer)));
struct MojoHandleSignalsState* signals_state =
static_cast<struct MojoHandleSignalsState*>(buffer_start);
return MojoWait(mojo_handle, signals, deadline, signals_state);
« 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