From 442292715e670783268c162d59e7b92290834dae Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Wed, 9 Dec 2020 23:15:37 +0100 Subject: [PATCH] be explicit about narrowing to resolve: error: type 'btScalar *' (aka 'float *') cannot be narrowed to 'bool' in initializer list [-Wc++11-narrowing] --- apps/openmw_test_suite/detournavigator/recastmeshobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw_test_suite/detournavigator/recastmeshobject.cpp b/apps/openmw_test_suite/detournavigator/recastmeshobject.cpp index a3606f8273..6612f71a31 100644 --- a/apps/openmw_test_suite/detournavigator/recastmeshobject.cpp +++ b/apps/openmw_test_suite/detournavigator/recastmeshobject.cpp @@ -15,7 +15,7 @@ namespace struct DetourNavigatorRecastMeshObjectTest : Test { btBoxShape mBoxShape {btVector3(1, 2, 3)}; - btCompoundShape mCompoundShape {btVector3(1, 2, 3)}; + btCompoundShape mCompoundShape {static_cast(btVector3(1, 2, 3))}; btTransform mTransform {btQuaternion(btVector3(1, 2, 3), 1), btVector3(1, 2, 3)}; DetourNavigatorRecastMeshObjectTest()