Browse Source

Use `std::log2` with correct cast in teVarsInit().

tags/v2.1.2
Andrew Belt 2 years ago
parent
commit
4a8e0f43a5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Quantity.cpp

+ 1
- 1
src/Quantity.cpp View File

@@ -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) {


Loading…
Cancel
Save