Skip to content

Commit 61559ca

Browse files
Avoid unaligned memory access on ARM (Closes: jkraemer#16)
1 parent 903e5de commit 61559ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/src/mempool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ INLINE void *mp_alloc(MemoryPool *mp, int size)
2626
{
2727
char *p;
2828
p = mp->curr_buffer + mp->pointer;
29-
#if defined POSH_OS_SOLARIS || defined POSH_OS_SUNOS
29+
#if defined POSH_OS_SOLARIS || defined POSH_OS_SUNOS || defined POSH_CPU_STRONGARM
3030
size = (((size - 1) >> 3) + 1) << 3;
3131
#endif
3232
mp->pointer += size;

0 commit comments

Comments
 (0)