aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chheap.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-24 14:57:38 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-24 14:57:38 +0000
commit24594525990ee1769ee933261b821211b4c299e8 (patch)
tree78fadffd9ad2173941eff2d7a096d593a9e0f15e /os/kernel/src/chheap.c
parenta55d3c6e6b8d14d6310382f149593df231925c17 (diff)
downloadChibiOS-24594525990ee1769ee933261b821211b4c299e8.tar.gz
ChibiOS-24594525990ee1769ee933261b821211b4c299e8.tar.bz2
ChibiOS-24594525990ee1769ee933261b821211b4c299e8.zip
Fixed bugs 3191107 and 3191112.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2762 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chheap.c')
-rw-r--r--os/kernel/src/chheap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/kernel/src/chheap.c b/os/kernel/src/chheap.c
index 13db7cf6b..c655e3852 100644
--- a/os/kernel/src/chheap.c
+++ b/os/kernel/src/chheap.c
@@ -125,7 +125,7 @@ void *chHeapAlloc(MemoryHeap *heapp, size_t size) {
if (heapp == NULL)
heapp = &default_heap;
- size = MEM_ALIGN_SIZE(size);
+ size = MEM_ALIGN_NEXT(size);
qp = &heapp->h_free;
H_LOCK(heapp);