summaryrefslogtreecommitdiff
path: root/firmware/asm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/asm')
-rw-r--r--firmware/asm/memset16.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/asm/memset16.c b/firmware/asm/memset16.c
index db71d86fcc..12f3388a8d 100644
--- a/firmware/asm/memset16.c
+++ b/firmware/asm/memset16.c
@@ -20,9 +20,10 @@
****************************************************************************/
#include "string-extra.h" /* memset16() */
+#include <stdint.h>
#define LBLOCKSIZE (sizeof(long)/2)
-#define ROCKBOX_UNALIGNED(X) ((long)X & (sizeof(long) - 1))
+#define ROCKBOX_UNALIGNED(X) ((uintptr_t)X & (sizeof(long) - 1))
#define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE)
void memset16(void *dst, int val, size_t len)