mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
add signed char patch to allow build on arches
where char is unsigned
======================================
Tests Statistics
--------------------------------------
Functions Checks
Success 65 2740
Failed 0 0
--------------------------------------
Total 65 2740
======================================
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
Description: fix FTBFS on architectures where char is unsigned
|
|
Fix error
|
|
base64.cxx:30:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
|
|
by making Base64::sDecTable a signed char.
|
|
Bug-Debian: https://bugs.debian.org/859963
|
|
Forwarded: via email
|
|
Author: gregor herrmann <gregoa@debian.org>
|
|
Last-Update: 2017-04-10
|
|
|
|
--- a/mimetic/codec/base64.cxx
|
|
+++ b/mimetic/codec/base64.cxx
|
|
@@ -13,7 +13,7 @@
|
|
"abcdefghijklmnopqrstuvwxyz"
|
|
"0123456789+/=";
|
|
|
|
-const char Base64::sDecTable[] = {
|
|
+const signed char Base64::sDecTable[] = {
|
|
-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,
|
|
--- a/mimetic/codec/base64.h
|
|
+++ b/mimetic/codec/base64.h
|
|
@@ -20,7 +20,7 @@
|
|
enum { default_maxlen = 76 };
|
|
enum { eq_sign = 100 };
|
|
static const char sEncTable[];
|
|
- static const char sDecTable[];
|
|
+ static const signed char sDecTable[];
|
|
static const int sDecTableSz;
|
|
public:
|
|
class Encoder; class Decoder;
|