Commit ff9fdc7d authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix compilation error with clang

parent 46ca49e7
......@@ -115,7 +115,11 @@ inline double eterm_exact(size_t r, size_t s, size_t mrs, const Graph&)
}
else
{
#ifndef __clang__
constexpr double log_2 = log(2);
#else
const double log_2 = log(2);
#endif
return -val - mrs * log_2;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment