From owner-svn-ports-all@freebsd.org Fri Apr 29 21:55:12 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27DADB21F0B; Fri, 29 Apr 2016 21:55:12 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CFB281B4B; Fri, 29 Apr 2016 21:55:11 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3TLtARL037994; Fri, 29 Apr 2016 21:55:10 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3TLtAcV037991; Fri, 29 Apr 2016 21:55:10 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201604292155.u3TLtAcV037991@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Fri, 29 Apr 2016 21:55:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414296 - head/games/el/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2016 21:55:12 -0000 Author: pi Date: Fri Apr 29 21:55:10 2016 New Revision: 414296 URL: https://svnweb.freebsd.org/changeset/ports/414296 Log: games/el: Fix build with libc++ 3.8.0 PR: 208841 Submitted by: dim Approved by: acm (maintainer timeout) Added: head/games/el/files/patch-icon__window.cpp (contents, props changed) head/games/el/files/patch-item__lists.cpp (contents, props changed) head/games/el/files/patch-quest__log.cpp (contents, props changed) Added: head/games/el/files/patch-icon__window.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/el/files/patch-icon__window.cpp Fri Apr 29 21:55:10 2016 (r414296) @@ -0,0 +1,11 @@ +--- icon_window.cpp.orig 2014-01-06 13:53:40 UTC ++++ icon_window.cpp +@@ -358,7 +358,7 @@ namespace IconWindow + size_t index = (has_highlight)? 1: 0; + if (flashing) + { +- if (abs(SDL_GetTicks() - last_flash_change) > 250) ++ if (abs((Sint32)(SDL_GetTicks() - last_flash_change)) > 250) + { + last_flash_change = SDL_GetTicks(); + flashing--; Added: head/games/el/files/patch-item__lists.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/el/files/patch-item__lists.cpp Fri Apr 29 21:55:10 2016 (r414296) @@ -0,0 +1,11 @@ +--- item_lists.cpp.orig 2014-01-06 13:53:40 UTC ++++ item_lists.cpp +@@ -796,7 +796,7 @@ namespace ItemLists + { + if (!last_mod_time) + return; +- if (force || (last_mod_time && abs(last_mod_time - SDL_GetTicks()) > 5000)) ++ if (force || (last_mod_time && abs((Sint32)(last_mod_time - SDL_GetTicks())) > 5000)) + save(); + } + Added: head/games/el/files/patch-quest__log.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/el/files/patch-quest__log.cpp Fri Apr 29 21:55:10 2016 (r414296) @@ -0,0 +1,11 @@ +--- quest_log.cpp.orig 2014-01-06 13:53:40 UTC ++++ quest_log.cpp +@@ -85,7 +85,7 @@ class Quest_Title_Request + Uint16 get_id(void) const { return id; } + void request(void); + bool been_requested(void) const { return requested; } +- bool is_too_old(void) const { return (abs(SDL_GetTicks() - request_time) > 5000); } ++ bool is_too_old(void) const { return (abs((Sint32)(SDL_GetTicks() - request_time)) > 5000); } + private: + Uint16 id; + Uint32 request_time;