mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
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)
This commit is contained in:
parent
9553a446ca
commit
03828b46d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432973
@ -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/
|
||||
|
11
games/frobtads/files/patch-tads3_vmtz.cpp
Normal file
11
games/frobtads/files/patch-tads3_vmtz.cpp
Normal file
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user