Deleted Added
full compact
0a1,4
> /*
> * Define simple versions of assertion macros that won't recurse in case
> * of assertion failures in malloc_*printf().
> */
51a56,59
> *
> * syscall() returns long or int, depending on platform, so capture the
> * unused result in the widest plausible type to avoid compiler
> * warnings.
53c61
< UNUSED int result = syscall(SYS_write, STDERR_FILENO, s, strlen(s));
---
> UNUSED long result = syscall(SYS_write, STDERR_FILENO, s, strlen(s));
55c63
< UNUSED int result = write(STDERR_FILENO, s, strlen(s));
---
> UNUSED ssize_t result = write(STDERR_FILENO, s, strlen(s));
101c109
< (LPSTR)buf, buflen, NULL);
---
> (LPSTR)buf, (DWORD)buflen, NULL);
596c604,605
< ret = i;
---
> assert(i < INT_MAX);
> ret = (int)i;
666a676,684
>
> /*
> * Restore normal assertion macros, in order to make it possible to compile all
> * C files as a single concatenation.
> */
> #undef assert
> #undef not_reached
> #undef not_implemented
> #include "jemalloc/internal/assert.h"