summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-09-27 17:40:56 +0200
committerkobewi <kobewi4e@gmail.com>2022-09-27 19:09:34 +0200
commit7499f4126495f87b3b7ac4ecc8212a9f1f5c21ac (patch)
tree57dfcfc7969b2e608415b0bb6eae9241760bfa3c /core/variant
parentc2f66648f1cb7f26adf77cc3cf91052c95be5dbe (diff)
Fix wrong floori() behavior
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant_utility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp
index 7ff64c88f0..5bad27c607 100644
--- a/core/variant/variant_utility.cpp
+++ b/core/variant/variant_utility.cpp
@@ -129,7 +129,7 @@ struct VariantUtilityFunctions {
}
static inline int floori(double x) {
- return int(x);
+ return int(Math::floor(x));
}
static inline Variant ceil(Variant x, Callable::CallError &r_error) {