aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_functions.cpp
diff options
context:
space:
mode:
authorMarcelo Fernandez2017-08-18 12:10:21 -0300
committerMarcelo Fernandez2017-08-18 12:10:21 -0300
commit647c4ae5bf9b64e78b8ff0fd36c8aa610f2a814b (patch)
treec22161ef48870c28981232d8e42710260a856fbf /modules/gdscript/gd_functions.cpp
parent49028e0c4931c6dd407d6c91c314f3576795c3ed (diff)
downloadgodot-647c4ae5bf9b64e78b8ff0fd36c8aa610f2a814b.tar.gz
godot-647c4ae5bf9b64e78b8ff0fd36c8aa610f2a814b.tar.zst
godot-647c4ae5bf9b64e78b8ff0fd36c8aa610f2a814b.zip
Diffstat (limited to 'modules/gdscript/gd_functions.cpp')
-rw-r--r--modules/gdscript/gd_functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp
index bfd6835cb..a20dd1c4e 100644
--- a/modules/gdscript/gd_functions.cpp
+++ b/modules/gdscript/gd_functions.cpp
@@ -440,7 +440,7 @@ void GDFunctions::call(Function p_func, const Variant **p_args, int p_arg_count,
VALIDATE_ARG_COUNT(1);
VALIDATE_ARG_NUM(0);
int64_t num = *p_args[0];
- r_ret = nearest_power_of_2(num);
+ r_ret = next_power_of_2(num);
} break;
case OBJ_WEAKREF: {
VALIDATE_ARG_COUNT(1);