summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2021-11-12 21:03:29 +1100
committerBastiaan Olij <mux213@gmail.com>2021-11-22 21:48:20 +1100
commit94efe3d410f712fd1a730ed4e6b2ac90ffdc2fe7 (patch)
tree8cdd1fe818b8a7aa73d9a0609b972a68c5943dd7 /test/src
parent271e33658db6558698153472b4a2dec15a4253ba (diff)
downloadredot-cpp-94efe3d410f712fd1a730ed4e6b2ac90ffdc2fe7.tar.gz
Fixing compiler warnings around implicit type casting loosing precision
Diffstat (limited to 'test/src')
-rw-r--r--test/src/example.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/example.cpp b/test/src/example.cpp
index 4d34d4c..54cd1ae 100644
--- a/test/src/example.cpp
+++ b/test/src/example.cpp
@@ -118,7 +118,7 @@ Ref<ExampleRef> Example::extended_ref_checks(Ref<ExampleRef> p_ref) const {
}
Variant Example::varargs_func(const Variant **args, GDNativeInt arg_count, GDNativeCallError &error) {
- UtilityFunctions::print("Varargs called with ", String::num(arg_count), " arguments");
+ UtilityFunctions::print("Varargs called with ", String::num((double)arg_count), " arguments");
return arg_count;
}