summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
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)