From 6f68a05e0acef42ea61fa478065a50f920074bda Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Mon, 15 May 2023 23:25:16 +0300 Subject: [PATCH] Slightly better initialization --- src/sfall_arrays.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfall_arrays.cc b/src/sfall_arrays.cc index 98b2fbb..d7b9f4b 100644 --- a/src/sfall_arrays.cc +++ b/src/sfall_arrays.cc @@ -95,7 +95,7 @@ public: ArrayElement() : type(ArrayElementType::INT) , value( - { 0 }) { + { .integerValue = 0 }) { // Nothing here }; @@ -104,7 +104,7 @@ public: ArrayElement(ArrayElement&& other) : type(ArrayElementType::INT) , value( - { 0 }) + { .integerValue = 0 }) { std::swap(type, other.type); std::swap(value, other.value);