Fix some Mac OS size_t versus int complaints.
Change-Id: I80bd0737122e76b42090fa0eed9b3f7c33b3640b
diff --git a/src/check_jni.cc b/src/check_jni.cc
index 89f0693..4b17ad8 100644
--- a/src/check_jni.cc
+++ b/src/check_jni.cc
@@ -894,7 +894,7 @@
const char* function_name_;
int flags_;
bool has_method_;
- size_t indent_;
+ int indent_;
DISALLOW_COPY_AND_ASSIGN(ScopedCheck);
};
diff --git a/src/class_linker.cc b/src/class_linker.cc
index df2e971..4d3b2ea 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -2301,7 +2301,7 @@
// No vtable.
size_t count = klass->NumVirtualMethods();
if (!IsUint(16, count)) {
- ThrowClassFormatError("Too many methods on interface: %d", count);
+ ThrowClassFormatError("Too many methods on interface: %zd", count);
return false;
}
for (size_t i = 0; i < count; ++i) {
@@ -2355,7 +2355,7 @@
}
}
if (!IsUint(16, actual_count)) {
- ThrowClassFormatError("Too many methods defined on class: %d", actual_count);
+ ThrowClassFormatError("Too many methods defined on class: %zd", actual_count);
return false;
}
// Shrink vtable if possible
diff --git a/src/dex_verifier.h b/src/dex_verifier.h
index 5af09af..8f6920b 100644
--- a/src/dex_verifier.h
+++ b/src/dex_verifier.h
@@ -568,7 +568,7 @@
std::string Dump() const {
std::string result;
for (size_t i = 0; i < num_regs_; i++) {
- result += StringPrintf("%d:[", i);
+ result += StringPrintf("%zd:[", i);
result += GetRegisterType(i).Dump();
result += "],";
}