diff --git a/lmorpho/lsystem.cpp b/lmorpho/lsystem.cpp
index 24f92179e4687d9f86bf5678777615c38ca5c230..723caf43799f22cf461acd7f5ab44a9836fb417b 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) {