From 2bce508e565ffbc4e54fd0c9cb5281685771f350 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Mon, 14 Mar 2016 17:35:18 +0100 Subject: [PATCH] gmio_core: fix fallback of gmio_powf() --- src/gmio_core/internal/c99_math_compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmio_core/internal/c99_math_compat.h b/src/gmio_core/internal/c99_math_compat.h index d5ac6b0..70ec38e 100644 --- a/src/gmio_core/internal/c99_math_compat.h +++ b/src/gmio_core/internal/c99_math_compat.h @@ -24,8 +24,8 @@ # define gmio_powf powf #else /* No powf() function, call pow(double) as fallback */ -GMIO_INLINE float gmio_powf(float x) -{ return (float)pow((double)x); } +GMIO_INLINE float gmio_powf(float base, float exponent) +{ return (float)pow((double)base, (double)exponent); } #endif #ifdef GMIO_HAVE_SQRTF_FUNC