From 118d155360f50353414a2fae647b4eaba675c563 Mon Sep 17 00:00:00 2001 From: twinaphex <libretro@gmail.com> Date: Sat, 29 Dec 2018 04:39:13 +0100 Subject: [PATCH] Buildfix --- dynamic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamic.c b/dynamic.c index 89bcc8f1c7..4f102e03a4 100644 --- a/dynamic.c +++ b/dynamic.c @@ -1470,8 +1470,8 @@ bool rarch_environment_cb(unsigned cmd, void *data) { memcpy(hwr, cb, offsetof(struct retro_hw_render_callback, stencil)); - memset(hwr + offsetof(struct retro_hw_render_callback, stencil), - 0, sizeof(*cb) - offsetof(struct retro_hw_render_callback, stencil)); + memset((uint8_t*)hwr + offsetof(struct retro_hw_render_callback, stencil), + 0, sizeof(*cb) - offsetof(struct retro_hw_render_callback, stencil)); } else memcpy(hwr, cb, sizeof(*cb));