commit dd85e0ff7d0a565de9b0e6a7d5fa622fd8372687
parent 8524813dc34e1b596f903ecd0dd64411b1447aab
Author: Christian Ermann <christianermann@gmail.com>
Date: Sat, 30 Jul 2022 14:16:56 -0700
Added const qualifer to src argument of s_copyMemory
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/memory.h b/include/memory.h
@@ -16,5 +16,5 @@ void *s_alloc(u64 size, memory_tag tag);
void s_free(void *mem, u64 size, memory_tag tag);
void s_zeroMemory(void *mem, u64 size);
-void s_copyMemory(void *dst, void *src, u64 size);
+void s_copyMemory(void *dst, const void *src, u64 size);
diff --git a/src/memory.c b/src/memory.c
@@ -46,7 +46,7 @@ void s_zeroMemory(void *mem, u64 size)
memset(mem, 0, size);
}
-void s_copyMemory(void *dst, void *src, u64 size)
+void s_copyMemory(void *dst, const void *src, u64 size)
{
memcpy(dst, src, size);
}