scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 743f3cacf35cccdcdb42e2e06478b42d9333e507
parent 6cdd955f1d50996aa6b411756910e813f591e2f0
Author: Quentin Rameau <quinq@fifth.space>
Date:   Fri, 17 Feb 2017 00:32:17 +0100

[libc] Remove a cast from memcpy

Diffstat:
Mlibc/src/memcpy.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libc/src/memcpy.c b/libc/src/memcpy.c @@ -5,7 +5,8 @@ void * memcpy(void *dst, const void *src, size_t n) { - char *s1 = dst, *s2 = (char *) src; + char *s1 = dst; + const char *s2 = src; while (n-- > 0) *s1++ = *s2++;