Explicitly cast size_t var to (uint64_t) when printf format is PRIx64.
llvm-svn: 251585
This commit is contained in:
@@ -1586,7 +1586,7 @@ RenderScriptRuntime::LoadAllocation(Stream &strm, const uint32_t alloc_id, const
|
||||
if (alloc_size != length)
|
||||
{
|
||||
strm.Printf("Warning: Mismatched allocation sizes - file 0x%" PRIx64 " bytes, allocation 0x%x bytes",
|
||||
length, alloc_size);
|
||||
(uint64_t) length, alloc_size);
|
||||
strm.EOL();
|
||||
length = alloc_size < length ? alloc_size : length; // Set length to copy to minimum
|
||||
}
|
||||
@@ -1685,7 +1685,7 @@ RenderScriptRuntime::SaveAllocation(Stream &strm, const uint32_t alloc_id, const
|
||||
// Write allocation data to file
|
||||
num_bytes = static_cast<size_t>(*alloc->size.get());
|
||||
if (log)
|
||||
log->Printf("RenderScriptRuntime::SaveAllocation - Writing %" PRIx64 "bytes from %p", num_bytes, buffer.get());
|
||||
log->Printf("RenderScriptRuntime::SaveAllocation - Writing 0x%" PRIx64 " bytes from %p", (uint64_t) num_bytes, buffer.get());
|
||||
|
||||
err = file.Write(buffer.get(), num_bytes);
|
||||
if (!err.Success())
|
||||
|
||||
Reference in New Issue
Block a user