diff --git a/src/Quantity.cpp b/src/Quantity.cpp index d1fb5ea5..54d6ebea 100644 --- a/src/Quantity.cpp +++ b/src/Quantity.cpp @@ -77,7 +77,7 @@ static void teVarsInit() { } // Add custom functions - teVars.push_back({"log2", (void*) log2, TE_FUNCTION1 | TE_FLAG_PURE, NULL}); + teVars.push_back({"log2", (void*) (double(*)(double)) std::log2, TE_FUNCTION1 | TE_FLAG_PURE, NULL}); } void Quantity::setDisplayValueString(std::string s) {