File libqca-qt5-2.1.1-explicit-signed-char.patch of Package libqca-qt5

From ce0f32845608eb466053043b0229ea8dd2cb77b3 Mon Sep 17 00:00:00 2001
From: Antoine Belvire <antoine.belvire@laposte.net>
Date: Wed, 25 May 2016 20:05:22 +0200
Subject: [PATCH] Fix build with PPC architecture

'char' is not necessarily signed by default, it depends on the hardware
architecture. On PowerPC for example, it is unsigned.

This commit just changes a 'char' - which was assumed to be signed - into
signed char' and thus fix potential build errors on PPC (notably with GCC 6).
---
 src/qca_textfilter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qca_textfilter.cpp b/src/qca_textfilter.cpp
index 9889a24..3baf511 100644
--- a/src/qca_textfilter.cpp
+++ b/src/qca_textfilter.cpp
@@ -293,7 +293,7 @@ static QByteArray b64decode(const QByteArray &s, bool *ok)
 	// 64 specifies eof
 	// everything else specifies data
 
-	static char tbl[] =
+	static signed char tbl[] =
 	{
 		-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
 		-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-- 
2.8.2

openSUSE Build Service is sponsored by