summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-02-22 22:33:25 +0000
committerJens Arnold <amiconn@rockbox.org>2006-02-22 22:33:25 +0000
commitc7ba2b518dd9ecad3431e122eb61fab366aa1749 (patch)
tree821ee8181386d9f9b93881a07787cb11a8a74bcf /firmware/common
parent0045bd3d8466476218568a8a863c136041d9a4e3 (diff)
Fix silly bug that made it crash on iPod.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8791 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rwxr-xr-xfirmware/common/memset16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/memset16.c b/firmware/common/memset16.c
index 0aee97a169..bc187a5d25 100755
--- a/firmware/common/memset16.c
+++ b/firmware/common/memset16.c
@@ -19,7 +19,7 @@
#include <string.h>
#define LBLOCKSIZE (sizeof(long)/2)
-#define UNALIGNED(X) ((long)X & (LBLOCKSIZE - 1))
+#define UNALIGNED(X) ((long)X & (sizeof(long) - 1))
#define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE)
void *memset16(void *dst, int val, size_t len)