Skip to content
Snippets Groups Projects
Commit 0c53cfcc authored by Ben Cumming's avatar Ben Cumming Committed by Sam Yates
Browse files

Tiny fix to work around gcc bug on ppc (#272)

GCC has a power-pc specific bug

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26374

This is simple to workaround: remove `l` from a double literal in a `constexpr` expression.
parent 5b254146
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@ struct grow_result {
double length = 0.;
};
constexpr double deg_to_rad = 3.1415926535897932384626433832795l/180.0;
constexpr double deg_to_rad = 3.1415926535897932384626433832795/180.0;
template <typename Gen>
grow_result grow(section_tip tip, const lsys_sampler& S, Gen &g) {
......
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