From 4321e55b4df6f62987ee047920bb0c2af93f8bfb Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Sun, 14 May 2023 23:19:05 +0300 Subject: [PATCH] Fix typo --- src/sfall_arrays.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sfall_arrays.cc b/src/sfall_arrays.cc index feeea1a..6020828 100644 --- a/src/sfall_arrays.cc +++ b/src/sfall_arrays.cc @@ -135,15 +135,15 @@ public: case VALUE_TYPE_INT: type = ArrayElementType::INT; integerValue = programValue.integerValue; - return; + break; case VALUE_TYPE_FLOAT: type = ArrayElementType::FLOAT; floatValue = programValue.floatValue; - return; + break; case VALUE_TYPE_PTR: type = ArrayElementType::POINTER; pointerValue = programValue.pointerValue; - return; + break; case VALUE_TYPE_STRING: case VALUE_TYPE_DYNAMIC_STRING: type = ArrayElementType::STRING; @@ -152,7 +152,7 @@ public: auto buf = (char*)malloc(len + 1); strcpy(buf, str); stringValue = buf; - return; + break; } } ProgramValue toValue(Program* program) const @@ -282,7 +282,7 @@ public: if (key.isInt()) { auto index = key.asInt(); if (index >= 0 && index < size()) { - values[index] = ArrayElement { key, program }; + values[index] = ArrayElement { val, program }; } } }