From 123cd93f387b7a0ea813e29c293e0ad81f1f8540 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Sun, 21 Aug 2016 20:37:58 +0200 Subject: [PATCH] Fix compilation error on gcc --- src/constraint/FixedJoint.cpp | 2 +- src/constraint/HingeJoint.cpp | 2 +- src/constraint/SliderJoint.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constraint/FixedJoint.cpp b/src/constraint/FixedJoint.cpp index 9ed31f01..8f0b105c 100644 --- a/src/constraint/FixedJoint.cpp +++ b/src/constraint/FixedJoint.cpp @@ -30,7 +30,7 @@ using namespace reactphysics3d; // Static variables definition -constexpr decimal FixedJoint::BETA = decimal(0.2); +const decimal FixedJoint::BETA = decimal(0.2); // Constructor FixedJoint::FixedJoint(const FixedJointInfo& jointInfo) diff --git a/src/constraint/HingeJoint.cpp b/src/constraint/HingeJoint.cpp index 4b152caa..1634bf27 100644 --- a/src/constraint/HingeJoint.cpp +++ b/src/constraint/HingeJoint.cpp @@ -31,7 +31,7 @@ using namespace reactphysics3d; // Static variables definition -constexpr decimal HingeJoint::BETA = decimal(0.2); +const decimal HingeJoint::BETA = decimal(0.2); // Constructor HingeJoint::HingeJoint(const HingeJointInfo& jointInfo) diff --git a/src/constraint/SliderJoint.cpp b/src/constraint/SliderJoint.cpp index efe7cbff..919d91c0 100644 --- a/src/constraint/SliderJoint.cpp +++ b/src/constraint/SliderJoint.cpp @@ -29,7 +29,7 @@ using namespace reactphysics3d; // Static variables definition -constexpr decimal SliderJoint::BETA = decimal(0.2); +const decimal SliderJoint::BETA = decimal(0.2); // Constructor SliderJoint::SliderJoint(const SliderJointInfo& jointInfo)