"size_t" isn't always 64 bit, it is 32 bit on 32 bit systems. All printf style statements that were assuming size_t were 64 bit were changed, and they were also changed to display them as unsigned values as "size_t" isn't signed.
If you print anything with 'size_t', please cast it to "uint64_t" in the printf and use PRIu64 or PRIx64. llvm-svn: 202738
This commit is contained in:
@@ -338,11 +338,11 @@ SBProcess::PutSTDIN (const char *src, size_t src_len)
|
||||
}
|
||||
|
||||
if (log)
|
||||
log->Printf("SBProcess(%p)::PutSTDIN (src=\"%s\", src_len=%d) => %" PRId64,
|
||||
log->Printf("SBProcess(%p)::PutSTDIN (src=\"%s\", src_len=%" PRIu64 ") => %" PRIu64,
|
||||
process_sp.get(),
|
||||
src,
|
||||
(uint32_t) src_len,
|
||||
ret_val);
|
||||
(uint64_t) src_len,
|
||||
(uint64_t) ret_val);
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user