From 8b0b250f2cb9bdeef9730c432c002acd8e6f614f Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Wed, 10 Mar 2021 01:56:55 +0100 Subject: Fix errors and warnings reported by MSVC, explicitly set C99 --- Memory.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Memory.c') diff --git a/Memory.c b/Memory.c index 661d729..237efb9 100644 --- a/Memory.c +++ b/Memory.c @@ -21,6 +21,8 @@ void WriteAndSeek(void **dst, const void *src, const size_t size) return; } - memcpy(*dst, src, size); - *dst += size; + uint8_t **buf = (uint8_t **)dst; + + memcpy(*buf, src, size); + *buf += size; } -- cgit v1.2.3