Skip to content

Commit 49ae977

Browse files
authored
fix(Stack): float
1 parent 24f6393 commit 49ae977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripting/stack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ std::any DeserializeData(EValue ref, EContext* state)
169169
else if (ref.isNull())
170170
return nullptr;
171171
else if (ref.isNumber()) {
172-
if (ref.cast<float>() == (float)(ref.cast<int64_t>())) return ref.cast<int64_t>();
172+
if (ref.cast<float>() == (float)((int64_t)(ref.cast<float>()))) return ref.cast<int64_t>();
173173
else return ref.cast<float>();
174174
}
175175
else if (ref.isString())

0 commit comments

Comments
 (0)