Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2013 09:47:09 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r327336 - head/games/torcs/files
Message-ID:  <201309150947.r8F9l9d2086495@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Sun Sep 15 09:47:08 2013
New Revision: 327336
URL: http://svnweb.freebsd.org/changeset/ports/327336

Log:
  Fix build with libc++
  
  isnan() and isinf() do not like integer arguments, so remove two offending
  tests. These tests would always evaluate to false anyway because integers
  cannot express NaN nor infinity.

Added:
  head/games/torcs/files/patch-src__modules__simu__simuv2__simu.cpp   (contents, props changed)

Added: head/games/torcs/files/patch-src__modules__simu__simuv2__simu.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/torcs/files/patch-src__modules__simu__simuv2__simu.cpp	Sun Sep 15 09:47:08 2013	(r327336)
@@ -0,0 +1,10 @@
+--- ./src/modules/simu/simuv2/simu.cpp.orig	2012-10-03 07:18:49.000000000 +0000
++++ ./src/modules/simu/simuv2/simu.cpp	2013-09-15 09:29:34.000000000 +0000
+@@ -67,7 +67,6 @@
+     if (isnan(car->ctrl->brakeCmd) || isinf(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0;
+     if (isnan(car->ctrl->clutchCmd) || isinf(car->ctrl->clutchCmd)) car->ctrl->clutchCmd = 0;
+     if (isnan(car->ctrl->steer) || isinf(car->ctrl->steer)) car->ctrl->steer = 0;
+-    if (isnan(car->ctrl->gear) || isinf(car->ctrl->gear)) car->ctrl->gear = 0;
+ #endif
+ 
+     /* When the car is broken try to send it on the track side */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309150947.r8F9l9d2086495>