mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 18:47:19 +03:00
Silence miscellaneous 64-to-32-bit data loss warnings.
This commit is contained in:
parent
1c42a04cc6
commit
9e1810ca9d
13 changed files with 49 additions and 41 deletions
|
|
@ -581,7 +581,8 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
|||
str[i] = '\0';
|
||||
else
|
||||
str[size - 1] = '\0';
|
||||
ret = i;
|
||||
assert(i < INT_MAX);
|
||||
ret = (int)i;
|
||||
|
||||
#undef APPEND_C
|
||||
#undef APPEND_S
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue