summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patchoat/patchoat.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/patchoat/patchoat.cc b/patchoat/patchoat.cc
index ba09cb3d52..d9cefee611 100644
--- a/patchoat/patchoat.cc
+++ b/patchoat/patchoat.cc
@@ -276,14 +276,14 @@ static bool CheckImageIdenticalToOriginalExceptForRelocation(
if ((image_size % 4) != 0) {
*error_msg =
StringPrintf(
- "Relocated image file %s size not multiple of 4: %jd",
+ "Relocated image file %s size not multiple of 4: %" PRId64,
relocated_filename.c_str(), image_size);
return false;
}
- if (image_size > UINT32_MAX) {
+ if (image_size > std::numeric_limits<uint32_t>::max()) {
*error_msg =
StringPrintf(
- "Relocated image file %s too large: %jd" , relocated_filename.c_str(), image_size);
+ "Relocated image file %s too large: %" PRId64, relocated_filename.c_str(), image_size);
return false;
}