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 24f6393 commit 49ae977Copy full SHA for 49ae977
src/scripting/stack.cpp
@@ -169,7 +169,7 @@ 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<int64_t>();
+ if (ref.cast<float>() == (float)((int64_t)(ref.cast<float>()))) return ref.cast<int64_t>();
173
else return ref.cast<float>();
174
}
175
else if (ref.isString())
0 commit comments