Control: tags 897875 + patch
Control: tags 897875 + pending

Dear maintainer,

I've prepared an NMU for tempest-for-eliza (versioned as 1.0.5-2.1)
and uploaded it to DELAYED/14. Please feel free to tell me if I should 
cancel it.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

diff -Nru tempest-for-eliza-1.0.5/debian/changelog tempest-for-eliza-1.0.5/debian/changelog
--- tempest-for-eliza-1.0.5/debian/changelog	2015-07-12 23:57:24.000000000 +0300
+++ tempest-for-eliza-1.0.5/debian/changelog	2018-08-09 15:40:50.000000000 +0300
@@ -1,3 +1,10 @@
+tempest-for-eliza (1.0.5-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix logic errors discovered by gcc 8. (Closes: #897875)
+
+ -- Adrian Bunk <b...@debian.org>  Thu, 09 Aug 2018 15:40:50 +0300
+
 tempest-for-eliza (1.0.5-2) unstable; urgency=medium
 
   * Flesh out documentation
diff -Nru tempest-for-eliza-1.0.5/debian/patches/fix-logic-errors.patch tempest-for-eliza-1.0.5/debian/patches/fix-logic-errors.patch
--- tempest-for-eliza-1.0.5/debian/patches/fix-logic-errors.patch	1970-01-01 02:00:00.000000000 +0200
+++ tempest-for-eliza-1.0.5/debian/patches/fix-logic-errors.patch	2018-08-09 15:23:38.000000000 +0300
@@ -0,0 +1,17 @@
+Description: Fix logic errors discovered by gcc 8
+Author: Adrian Bunk <b...@debian.org>
+Bug-Debian: https://bugs.debian.org/897875
+
+--- tempest-for-eliza-1.0.5.orig/mp3player.cpp
++++ tempest-for-eliza-1.0.5/mp3player.cpp
+@@ -103,8 +103,8 @@ int main(int argc, char *argv[])
+     fprintf(stderr, "Couldn't set video mode: %s\n", SDL_GetError());
+     exit(1);
+   }
+-  if ((screen->flags | SDL_HWPALETTE) == 0) error("i can't get hardware palette support.");
+-  if ((screen->flags | SDL_FULLSCREEN) == 0) error("cannot set fullscreen mode.");
++  if ((screen->flags & SDL_HWPALETTE) == 0) error("i can't get hardware palette support.");
++  if ((screen->flags & SDL_FULLSCREEN) == 0) error("cannot set fullscreen mode.");
+   if (screen->format->BitsPerPixel != 8) error("cannot set 8bpp mode.");
+ 
+   SDL_LockSurface (screen);
diff -Nru tempest-for-eliza-1.0.5/debian/patches/series tempest-for-eliza-1.0.5/debian/patches/series
--- tempest-for-eliza-1.0.5/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
+++ tempest-for-eliza-1.0.5/debian/patches/series	2018-08-09 15:22:39.000000000 +0300
@@ -0,0 +1 @@
+fix-logic-errors.patch

Reply via email to