fixed wrong calls to math_log in the awk math module

This commit is contained in:
hyung-hwan 2017-09-16 10:41:25 +00:00
parent 36db3c8623
commit e8b59346a7

View File

@ -385,7 +385,7 @@ static qse_awk_flt_t math_log2 (qse_awk_t* awk, qse_awk_flt_t x)
#elif defined(HAVE_LOG2F)
return log2f (x);
#else
return math_log(x) / math_log(2.0);
return math_log(awk, x) / math_log(awk, 2.0);
#endif
}