Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 05:26:09 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432973 - in head/games/frobtads: . files
Message-ID:  <201702010526.v115Q9NL087217@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 05:26:09 2017
New Revision: 432973
URL: https://svnweb.freebsd.org/changeset/ports/432973

Log:
  games/frobtads: unbreak with clang 4.0
  
  tads3/vmtz.cpp:1987:30: error: ordered comparison between pointer and zero ('vmtz_trans *' and 'int')
              result->set(tcur > 0 ? tcur - 1 : tcur);
                          ~~~~ ^ ~
  
  PR:		216357
  Reported by:	antoine (via exp-run)
  Submitted by:	kaiwang27@gmail.com (maintainer)

Added:
  head/games/frobtads/files/
  head/games/frobtads/files/patch-tads3_vmtz.cpp   (contents, props changed)
Modified:
  head/games/frobtads/Makefile   (contents, props changed)

Modified: head/games/frobtads/Makefile
==============================================================================
--- head/games/frobtads/Makefile	Wed Feb  1 05:25:55 2017	(r432972)
+++ head/games/frobtads/Makefile	Wed Feb  1 05:26:09 2017	(r432973)
@@ -3,6 +3,7 @@
 
 PORTNAME=	frobtads
 PORTVERSION=	1.2.3
+PORTREVISION=	1
 CATEGORIES=	games lang
 MASTER_SITES=	http://www.tads.org/${PORTNAME}/ \
 		http://www.ifarchive.org/if-archive/programming/tads3/source/

Added: head/games/frobtads/files/patch-tads3_vmtz.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/frobtads/files/patch-tads3_vmtz.cpp	Wed Feb  1 05:26:09 2017	(r432973)
@@ -0,0 +1,11 @@
+--- tads3/vmtz.cpp.orig	2013-05-17 19:46:51 UTC
++++ tads3/vmtz.cpp
+@@ -1984,7 +1984,7 @@ void CVmTimeZone::query(vmtzquery *resul
+              *   the transition in terms of the local time that was in effect
+              *   up until that moment
+              */
+-            result->set(tcur > 0 ? tcur - 1 : tcur);
++            result->set(cur > 0 ? tcur - 1 : tcur);
+             return;
+         }
+     }



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