From 0c53cfcce0c9398e485713e0f18d481b8a94f8d2 Mon Sep 17 00:00:00 2001
From: Ben Cumming <louncharf@gmail.com>
Date: Thu, 18 May 2017 15:40:53 +0200
Subject: [PATCH] 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.
---
 lmorpho/lsystem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lmorpho/lsystem.cpp b/lmorpho/lsystem.cpp
index 24f92179..723caf43 100644
--- a/lmorpho/lsystem.cpp
+++ b/lmorpho/lsystem.cpp
@@ -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) {
-- 
GitLab