FreeBSD Bugzilla – Attachment 169378 Details for
Bug 208841
games/el: Fix build with libc++ 3.8.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix type for abs() calls in games/el
games__el-fix-abs-1.diff (text/plain), 2.90 KB, created by
Dimitry Andric
on 2016-04-16 20:11:17 UTC
(
hide
)
Description:
Fix type for abs() calls in games/el
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-04-16 20:11:17 UTC
Size:
2.90 KB
patch
obsolete
>Index: games/el/files/patch-icon__window.cpp >=================================================================== >--- games/el/files/patch-icon__window.cpp (nonexistent) >+++ games/el/files/patch-icon__window.cpp (working copy) >@@ -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--; > >Property changes on: games/el/files/patch-icon__window.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: games/el/files/patch-item__lists.cpp >=================================================================== >--- games/el/files/patch-item__lists.cpp (nonexistent) >+++ games/el/files/patch-item__lists.cpp (working copy) >@@ -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(); >+ } >+ > >Property changes on: games/el/files/patch-item__lists.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: games/el/files/patch-quest__log.cpp >=================================================================== >--- games/el/files/patch-quest__log.cpp (nonexistent) >+++ games/el/files/patch-quest__log.cpp (working copy) >@@ -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; > >Property changes on: games/el/files/patch-quest__log.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208841
: 169378