From 7a0e5375604a8cd90dfda28669c201d5f01a1c1b Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Sun, 14 May 2023 23:15:47 +0300 Subject: [PATCH] Fix typo --- src/sfall_arrays.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sfall_arrays.cc b/src/sfall_arrays.cc index 392ea8d..feeea1a 100644 --- a/src/sfall_arrays.cc +++ b/src/sfall_arrays.cc @@ -137,11 +137,11 @@ public: integerValue = programValue.integerValue; return; case VALUE_TYPE_FLOAT: - type = ArrayElementType::INT; + type = ArrayElementType::FLOAT; floatValue = programValue.floatValue; return; case VALUE_TYPE_PTR: - type = ArrayElementType::INT; + type = ArrayElementType::POINTER; pointerValue = programValue.pointerValue; return; case VALUE_TYPE_STRING: @@ -459,7 +459,7 @@ std::unordered_map> arrays; std::unordered_set temporaryArrays; ArrayId CreateArray(int len, uint32_t flags) -{ +{ flags = (flags & ~1); // reset 1 bit if (len < 0) {