aboutsummaryrefslogtreecommitdiff
path: root/source/srtc.c
diff options
context:
space:
mode:
authortwinaphex2017-08-16 06:57:36 +0200
committertwinaphex2017-08-16 06:57:36 +0200
commitaa610b2ba997a945c77ce06e9a33638dedb480da (patch)
tree5f5d5448a458492bfb220eb2dc6d80096692c1b6 /source/srtc.c
parent7a8802b9311099e5034054a69a309dcb17661dfa (diff)
downloadsnesemu-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.gz
snesemu-aa610b2ba997a945c77ce06e9a33638dedb480da.tar.bz2
snesemu-aa610b2ba997a945c77ce06e9a33638dedb480da.zip
More C89_BUILD fixes
Diffstat (limited to 'source/srtc.c')
-rw-r--r--source/srtc.c4
1 files changed, 3 insertions, 1 deletions
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;