mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
string: make memcpy src const
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <stdint.h>
|
||||
#include <errno.h>
|
||||
|
||||
void *memcpy(void *d, void *s, size_t c) {
|
||||
void *memcpy(void *d, const void *s, size_t c) {
|
||||
#ifdef __x86_64__
|
||||
asm volatile ("rep movsb" : : "S"(s), "D"(d), "c"(c) : "memory");
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user