From aa610b2ba997a945c77ce06e9a33638dedb480da Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 16 Aug 2017 06:57:36 +0200 Subject: More C89_BUILD fixes --- source/srtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/srtc.c') diff --git a/source/srtc.c b/source/srtc.c index bdb2970..e86b6b2 100644 --- a/source/srtc.c +++ b/source/srtc.c @@ -343,8 +343,10 @@ void S9xSRTCPreSaveState() { if (Settings.SRTC) { + int32_t s; + S9xUpdateSrtcTime(); - int32_t s = Memory.SRAMSize ? (1 << (Memory.SRAMSize + 3)) * 128 : 0; + s = Memory.SRAMSize ? (1 << (Memory.SRAMSize + 3)) * 128 : 0; if (s > 0x20000) s = 0x20000; -- cgit v1.2.3