Use explicit cast to avoid compilers error
GCC (mips32 Buildbot) is complaining when passing 'uint16_t'
to std::to_string.
Change-Id: I0df72204947b7a4d445594851f043ec69196dbb7
diff --git a/runtime/jit/offline_profiling_info.cc b/runtime/jit/offline_profiling_info.cc
index a79bcf0..a3078bc 100644
--- a/runtime/jit/offline_profiling_info.cc
+++ b/runtime/jit/offline_profiling_info.cc
@@ -406,7 +406,8 @@
line_header->checksum = header_buffer.ReadUintAndAdvance<uint32_t>();
if (dex_location_size == 0 || dex_location_size > kMaxDexFileKeyLength) {
- *error = "DexFileKey has an invalid size: " + std::to_string(dex_location_size);
+ *error = "DexFileKey has an invalid size: " +
+ std::to_string(static_cast<uint32_t>(dex_location_size));
return kProfileLoadBadData;
}