Date: Fri, 29 Apr 2016 21:55:10 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414296 - head/games/el/files Message-ID: <201604292155.u3TLtAcV037991@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604292155.u3TLtAcV037991>