From 68211e27210077a70f46fd42c1aaa4d659a223fe Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 31 Jan 2017 04:04:45 +0100 Subject: [PATCH] Try to prevent compiler error --- patch.c | 3 ++- patch.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/patch.c b/patch.c index 6dcb54929b..8aec0af652 100644 --- a/patch.c +++ b/patch.c @@ -590,8 +590,9 @@ void patch_content( const char *name_bps, const char *name_ups, uint8_t **buf, - ssize_t *size) + void *data) { + ssize_t *size = (ssize_t*)data; bool allow_ups = !rarch_ctl(RARCH_CTL_IS_BPS_PREF, NULL) && !rarch_ctl(RARCH_CTL_IS_IPS_PREF, NULL); bool allow_ips = !rarch_ctl(RARCH_CTL_IS_UPS_PREF, NULL) && !rarch_ctl(RARCH_CTL_IS_BPS_PREF, NULL); bool allow_bps = !rarch_ctl(RARCH_CTL_IS_UPS_PREF, NULL) && !rarch_ctl(RARCH_CTL_IS_IPS_PREF, NULL); diff --git a/patch.h b/patch.h index 33993d8468..e3f2f83801 100644 --- a/patch.h +++ b/patch.h @@ -40,7 +40,8 @@ void patch_content( const char *name_ips, const char *name_bps, const char *name_ups, - uint8_t **buf, ssize_t *size); + uint8_t **buf, + void *data); RETRO_END_DECLS