From 5adac80648cbf86cdeb6cf1eb9d39ff525553740 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 16 Dec 2017 21:13:17 +0000 Subject: [PATCH] Fixed a couple of uninitialised variables. --- src/x86_ops_misc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/x86_ops_misc.h b/src/x86_ops_misc.h index f6eb918..c8d31f5 100644 --- a/src/x86_ops_misc.h +++ b/src/x86_ops_misc.h @@ -46,7 +46,7 @@ static int opSETALC(uint32_t fetchdat) static int opF6_a16(uint32_t fetchdat) { - int tempws, tempws2; + int tempws, tempws2 = 0; uint16_t tempw, src16; uint8_t src, dst; int8_t temps; @@ -144,7 +144,7 @@ static int opF6_a16(uint32_t fetchdat) } static int opF6_a32(uint32_t fetchdat) { - int tempws, tempws2; + int tempws, tempws2 = 0; uint16_t tempw, src16; uint8_t src, dst; int8_t temps; @@ -246,7 +246,7 @@ static int opF6_a32(uint32_t fetchdat) static int opF7_w_a16(uint32_t fetchdat) { uint32_t templ, templ2; - int tempws, tempws2; + int tempws, tempws2 = 0; int16_t temps16; uint16_t src, dst; @@ -340,7 +340,7 @@ static int opF7_w_a16(uint32_t fetchdat) static int opF7_w_a32(uint32_t fetchdat) { uint32_t templ, templ2; - int tempws, tempws2; + int tempws, tempws2 = 1; int16_t temps16; uint16_t src, dst;