We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d484c9 commit 24f6393Copy full SHA for 24f6393
src/scripting/stack.cpp
@@ -169,8 +169,8 @@ std::any DeserializeData(EValue ref, EContext* state)
169
else if (ref.isNull())
170
return nullptr;
171
else if (ref.isNumber()) {
172
- if (ref.cast<float>() == (float)(ref.cast<int64_t>())) return ref.cast<float>();
173
- else return ref.cast<int64_t>();
+ if (ref.cast<float>() == (float)(ref.cast<int64_t>())) return ref.cast<int64_t>();
+ else return ref.cast<float>();
174
}
175
else if (ref.isString())
176
return ref.cast<std::string>();
@@ -210,4 +210,4 @@ std::any DeserializeData(EValue ref, EContext* state)
210
211
else
212
213
-}
+}
0 commit comments