[oolite] 01/03: * patch making cast explicit for glib-2.23. Closes: #818815. Thanks to Gianfranco Costamagna <locutusofborg at debian.org>.

Nicolas Boulenguez nicolas.boulenguez at free.fr
Mon Jul 11 13:22:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

nicobou-guest pushed a commit to branch master
in repository oolite.

commit dcf2a5cb5ca614baa5a308688b98ccb10fd922f2
Author: Nicolas Boulenguez <nicolas.boulenguez at free.fr>
Date:   Mon Jul 11 14:38:31 2016 +0200

    * patch making cast explicit for glib-2.23. Closes: #818815.
      Thanks to Gianfranco Costamagna <locutusofborg at debian.org>.
---
 debian/patches/fix-glib-cast.patch | 15 +++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 16 insertions(+)

diff --git a/debian/patches/fix-glib-cast.patch b/debian/patches/fix-glib-cast.patch
new file mode 100644
index 0000000..375d4ce
--- /dev/null
+++ b/debian/patches/fix-glib-cast.patch
@@ -0,0 +1,15 @@
+Description: fix glib-2.23 build failure
+Author: Gianfranco Costamagna <locutusofborg at debian.org>
+Bug-Debian: https://bugs.debian.org/818815
+
+--- a/src/Core/Scripting/OOJSPlayerShip.m
++++ b/src/Core/Scripting/OOJSPlayerShip.m
+@@ -1496,7 +1496,7 @@
+ 
+ 	if (!isCargo)
+ 	{
+-		if (argc > offset+5 && JS_ValueToECMAUint32(context, OOJS_ARGV[offset + 5], &uValue) && isfinite(uValue))
++		if (argc > offset+5 && JS_ValueToECMAUint32(context, OOJS_ARGV[offset + 5], &uValue) && isfinite((double)uValue))
+ 		{
+ 			*risk = uValue;
+ 		}
diff --git a/debian/patches/series b/debian/patches/series
index 16d7325..96c7660 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ secure-format-log-string.diff
 avoid_date_cpp_macro.diff
 avoid_infinite_recursion_in_verify_descriptions.diff
 typo.diff
+fix-glib-cast.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/oolite.git



More information about the Pkg-games-commits mailing list