* libc/stdlib/nano-mallocr.c (ALIGN_TO): Do not assume that

integers are as big as pointers.
This commit is contained in:
DJ Delorie 2014-12-16 20:46:25 +00:00
parent 52edca9f86
commit ae4a2bd820
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-12-16 DJ Delorie <dj@redhat.com>
* libc/stdlib/nano-mallocr.c (ALIGN_TO): Do not assume that
integers are as big as pointers.
2014-12-16 Richard Earnshaw <rearnsha@arm.com>
* libc/machine/aarch64/strcpy.S: Improve handling of short strings.

View File

@ -105,7 +105,7 @@
#define current_mallinfo __malloc_current_mallinfo
#define ALIGN_TO(size, align) \
(((size) + (align) -1) & ~((align) -1))
(((size) + (align) -1L) & ~((align) -1L))
/* Alignment of allocated block */
#define MALLOC_ALIGN (8U)