freebsd-ports/games/torcs/files/patch-src_drivers_olethros_driver.cpp
Guido Falsi bd53ea2c20 Fix build with clang 6.
The fix also causes the port to fail on 10.x, so add USES-compiler
and USE_CXXSTD=c++11 to address that problem too.

PR:		225835
Submitted by:	Thibault Payet <monwarez@mailoo.org> (maintainer)
2018-02-24 00:28:10 +00:00

12 lines
308 B
C++

--- src/drivers/olethros/driver.cpp.orig 2018-02-11 21:23:59 UTC
+++ src/drivers/olethros/driver.cpp
@@ -802,7 +802,7 @@ namespace olethros {
rpmMaxTq,
rpmMaxPw,
rpmMax,
- rpmMax*2.0
+ rpmMax*2.0f
};
int N = 5;
for (int i=0; i<N - 1; i++) {