mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 12:35:36 +00:00
Fix compiler warning.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@776 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
dbf409ca20
commit
248d340b71
|
@ -77,7 +77,10 @@ static void DumpRawStream(Minidump *minidump,
|
|||
size_t current_offset = 0;
|
||||
while (current_offset < length) {
|
||||
size_t remaining = length - current_offset;
|
||||
printf("%.*s", remaining, &contents[current_offset]);
|
||||
// Printf requires an int and direct casting from size_t results
|
||||
// in compatibility warnings.
|
||||
u_int32_t int_remaining = remaining;
|
||||
printf("%.*s", int_remaining, &contents[current_offset]);
|
||||
char *next_null = reinterpret_cast<char *>(
|
||||
memchr(&contents[current_offset], 0, remaining));
|
||||
if (next_null == NULL)
|
||||
|
|
Loading…
Reference in a new issue