diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-18 08:12:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 08:12:56 +0200 |
commit | 1a92906b681735a5a2acfd98e3d6a4c75a7f6115 (patch) | |
tree | f01757ba9a3b618df7da54b0698134b1a9f03e3f /modules/gdscript/gd_functions.cpp | |
parent | 3a4ff3402dedab5f30b0f97aeadec6cf61f29a40 (diff) | |
parent | eab850524ead092ed9fe22e57955e59eae373b79 (diff) | |
download | redot-engine-1a92906b681735a5a2acfd98e3d6a4c75a7f6115.tar.gz |
Merge pull request #10406 from marcelofg55/closest_power_of_2
Add closest_power_of_2 func and implement mix_rate/latency on OS X
Diffstat (limited to 'modules/gdscript/gd_functions.cpp')
-rw-r--r-- | modules/gdscript/gd_functions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index 209bdadd67..094dd287e6 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -446,7 +446,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); |