diff --git a/mobile/library/common/jni/android_network_utility.cc b/mobile/library/common/jni/android_network_utility.cc index 976a8e9c6967..79725f08aaa7 100644 --- a/mobile/library/common/jni/android_network_utility.cc +++ b/mobile/library/common/jni/android_network_utility.cc @@ -148,6 +148,8 @@ envoy_cert_validation_result verify_x509_cert_chain(const std::vector javaObjectArrayToMatcherData(JNIEnv* env, jobjectArray JavaArrayOfByteToString(env, static_cast(env->GetObjectArrayElement(array, 0)), &cluster_name_out); - for (int i = 1; i < len; i += 3) { + for (size_t i = 1; i < len; i += 3) { std::string name; std::string type_as_string; std::string value;