From 647c4ae5bf9b64e78b8ff0fd36c8aa610f2a814b Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Fri, 18 Aug 2017 12:10:21 -0300 Subject: Add closest_power_of_2 func and implement mix_rate/latency on OS X --- modules/gdscript/gd_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gdscript/gd_functions.cpp') 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); -- cgit v1.2.3-70-g09d2