This commit is contained in:
Vasilii Rogin 2023-05-14 23:15:47 +03:00
parent 216bba5084
commit 7a0e537560
1 changed files with 3 additions and 3 deletions

View File

@ -137,11 +137,11 @@ public:
integerValue = programValue.integerValue; integerValue = programValue.integerValue;
return; return;
case VALUE_TYPE_FLOAT: case VALUE_TYPE_FLOAT:
type = ArrayElementType::INT; type = ArrayElementType::FLOAT;
floatValue = programValue.floatValue; floatValue = programValue.floatValue;
return; return;
case VALUE_TYPE_PTR: case VALUE_TYPE_PTR:
type = ArrayElementType::INT; type = ArrayElementType::POINTER;
pointerValue = programValue.pointerValue; pointerValue = programValue.pointerValue;
return; return;
case VALUE_TYPE_STRING: case VALUE_TYPE_STRING:
@ -459,7 +459,7 @@ std::unordered_map<ArrayId, std::unique_ptr<SFallArray>> arrays;
std::unordered_set<ArrayId> temporaryArrays; std::unordered_set<ArrayId> temporaryArrays;
ArrayId CreateArray(int len, uint32_t flags) ArrayId CreateArray(int len, uint32_t flags)
{ {
flags = (flags & ~1); // reset 1 bit flags = (flags & ~1); // reset 1 bit
if (len < 0) { if (len < 0) {