From 8eecc1f777970ae61f6cd700068390c9d052b664 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 5 Oct 2016 08:56:29 +0200 Subject: [PATCH] some code cleanups --- hermit/arch/x86/include/asm/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/arch/x86/include/asm/string.h b/hermit/arch/x86/include/asm/string.h index 5252e96e6..d17c3d7a0 100644 --- a/hermit/arch/x86/include/asm/string.h +++ b/hermit/arch/x86/include/asm/string.h @@ -77,7 +77,7 @@ inline static void *memset(void* dest, int val, size_t count) "andq $7, %%rcx\n\t" "rep stosb\n\t" : "=&c"(i), "=&D"(j) - : "a"((size_t)val), "1"(dest), "0"(count/8), "g"(count): "memory","cc"); + : "a"(0x00ULL), "1"(dest), "0"(count/8), "g"(count): "memory","cc"); } return dest;