summaryrefslogtreecommitdiff
path: root/user/mimetic/signedness.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 05:44:12 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 05:44:23 +0000
commit3579eebe207eccdf15b1a026e7e8f7f75dc93511 (patch)
treef9685ede95795288796c34bcbd2134fac4a4e8da /user/mimetic/signedness.patch
parent28b998ab6922ec9202adef85d0a9723f2299c066 (diff)
downloadpackages-3579eebe207eccdf15b1a026e7e8f7f75dc93511.tar.gz
packages-3579eebe207eccdf15b1a026e7e8f7f75dc93511.tar.bz2
packages-3579eebe207eccdf15b1a026e7e8f7f75dc93511.tar.xz
packages-3579eebe207eccdf15b1a026e7e8f7f75dc93511.zip
user/mimetic: fix build on PowerPC arches, modernise
Diffstat (limited to 'user/mimetic/signedness.patch')
-rw-r--r--user/mimetic/signedness.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/mimetic/signedness.patch b/user/mimetic/signedness.patch
new file mode 100644
index 000000000..95af182d3
--- /dev/null
+++ b/user/mimetic/signedness.patch
@@ -0,0 +1,37 @@
+--- mimetic-0.9.8/mimetic/codec/base64.h.old 2014-06-17 08:12:00.000000000 +0000
++++ mimetic-0.9.8/mimetic/codec/base64.h 2018-08-01 05:37:10.280000000 +0000
+@@ -19,8 +19,8 @@
+ enum { LF = 0xA, CR = 0xD, NL = '\n' };
+ enum { default_maxlen = 76 };
+ enum { eq_sign = 100 };
+- static const char sEncTable[];
+- static const char sDecTable[];
++ static const signed char sEncTable[];
++ static const signed char sDecTable[];
+ static const int sDecTableSz;
+ public:
+ class Encoder; class Decoder;
+--- mimetic-0.9.8/mimetic/codec/base64.cxx.old 2014-06-17 08:12:00.000000000 +0000
++++ mimetic-0.9.8/mimetic/codec/base64.cxx 2018-08-01 05:36:23.010000000 +0000
+@@ -8,12 +8,12 @@
+
+ using namespace mimetic;
+
+-const char Base64::sEncTable[] =
++const signed char Base64::sEncTable[] =
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "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,
+@@ -29,5 +29,5 @@
+ 49,50,51,-1
+ };
+
+-const int Base64::sDecTableSz = sizeof(Base64::sDecTable) / sizeof(char);
++const int Base64::sDecTableSz = sizeof(Base64::sDecTable) / sizeof(signed char);
+