fixed wrong calls to math_log in the awk math module
This commit is contained in:
parent
36db3c8623
commit
e8b59346a7
@ -385,7 +385,7 @@ static qse_awk_flt_t math_log2 (qse_awk_t* awk, qse_awk_flt_t x)
|
|||||||
#elif defined(HAVE_LOG2F)
|
#elif defined(HAVE_LOG2F)
|
||||||
return log2f (x);
|
return log2f (x);
|
||||||
#else
|
#else
|
||||||
return math_log(x) / math_log(2.0);
|
return math_log(awk, x) / math_log(awk, 2.0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user