From 41e2cf2ddd22a7e48e3f221bffdf4c3c917be23b Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 12 Jun 2017 00:33:00 +0200 Subject: [PATCH] frobtads: Fix building with current clang --- packages/frobtads/tads3-vmtz.cpp.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/frobtads/tads3-vmtz.cpp.patch diff --git a/packages/frobtads/tads3-vmtz.cpp.patch b/packages/frobtads/tads3-vmtz.cpp.patch new file mode 100644 index 000000000..5198e70e6 --- /dev/null +++ b/packages/frobtads/tads3-vmtz.cpp.patch @@ -0,0 +1,14 @@ +https://svnweb.freebsd.org/ports/head/games/frobtads/files/patch-tads3_vmtz.cpp?revision=432973&view=markup + +diff -u -r ../frobtads-1.2.3/tads3/vmtz.cpp ./tads3/vmtz.cpp +--- ../frobtads-1.2.3/tads3/vmtz.cpp 2013-05-17 21:46:51.000000000 +0200 ++++ ./tads3/vmtz.cpp 2017-06-12 00:31:09.635744304 +0200 +@@ -1984,7 +1984,7 @@ + * 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; + } + }