Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2014-12-16 23:46:25 +0300
committerDJ Delorie <dj@redhat.com>2014-12-16 23:46:25 +0300
commitae4a2bd820432ae02e02f5133783f66757051ffa (patch)
tree65adbece7d3fadd3dd040f1757de634651e82f70 /newlib/libc
parent52edca9f86f192ffabca35853ab45154f09ea833 (diff)
* libc/stdlib/nano-mallocr.c (ALIGN_TO): Do not assume that
integers are as big as pointers.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdlib/nano-mallocr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/nano-mallocr.c b/newlib/libc/stdlib/nano-mallocr.c
index cc9c87fbe..8d6ca5ce0 100644
--- a/newlib/libc/stdlib/nano-mallocr.c
+++ b/newlib/libc/stdlib/nano-mallocr.c
@@ -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)