Control: tags 812272 patch

The attached patch fixes the FTBFS

Description: Fix switch quantity not an integer with GCC 6
 This fixes a FTBFS with the following, and similar, errors:
 src/LaserBoy_vertex.hpp:696:40: error: switch quantity not an integer
 switch(abs(header.signal_id[5]))
Bug-Debian: https://bugs.debian.org/812272
Author: Graham Inggs <gin...@debian.org>
Last-Update: 2016-07-20
--- a/src/LaserBoy_vertex.hpp
+++ b/src/LaserBoy_vertex.hpp
@@ -715,7 +715,7 @@
             out.put((color & 0xff00) >> 8);
         }
         //--------------------------------------------------------------------
-        switch(abs(header.signal_id[5])) // sign indicates polarity of chanel data
+        switch((int)abs(header.signal_id[5])) // sign indicates polarity of chanel data
         {
             case LASERBOY_NO_SIGNAL:
                 out.put(0x00);
@@ -876,7 +876,7 @@
             out.put((color & 0xff00) >> 8);
         }
         //--------------------------------------------------------------------
-        switch(abs(header.signal_id[5])) // sign indicates polarity of channel data
+        switch((int)abs(header.signal_id[5])) // sign indicates polarity of channel data
         {
             case LASERBOY_NO_SIGNAL:
                 out.put(0x00);
--- a/src/LaserBoy_space.cpp
+++ b/src/LaserBoy_space.cpp
@@ -3342,7 +3342,7 @@
 //############################################################################
 string LaserBoy_space::LaserBoy_wave_signal_id_to_name(const short& signal_id) const
 {
-    switch(abs(signal_id)) // sign indicates polarity of channel data
+    switch((int)abs(signal_id)) // sign indicates polarity of channel data
     {
         default:
         case LASERBOY_NO_SIGNAL:

Reply via email to