pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libthrift



Module Name:    pkgsrc
Committed By:   tnn
Date:           Sat Sep 16 12:30:28 UTC 2017

Modified Files:
        pkgsrc/devel/libthrift: distinfo
Added Files:
        pkgsrc/devel/libthrift/patches:
            patch-lib_cpp_src_protocol_TBase64Utils.cpp

Log Message:
libthrift: fix a signed/unsigned mismatch warning


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/libthrift/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/libthrift/patches/patch-lib_cpp_src_protocol_TBase64Utils.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libthrift/distinfo
diff -u pkgsrc/devel/libthrift/distinfo:1.15 pkgsrc/devel/libthrift/distinfo:1.16
--- pkgsrc/devel/libthrift/distinfo:1.15        Thu Dec 15 23:50:01 2016
+++ pkgsrc/devel/libthrift/distinfo     Sat Sep 16 12:30:28 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2016/12/15 23:50:01 joerg Exp $
+$NetBSD: distinfo,v 1.16 2017/09/16 12:30:28 tnn Exp $
 
 SHA1 (thrift-0.7.0.tar.gz) = b8f6877bc75878984355da4efe171ad99ff05b6a
 RMD160 (thrift-0.7.0.tar.gz) = d9db8ff077347134101cd017e086511c4317b052
@@ -18,6 +18,7 @@ SHA1 (patch-lib_cpp_src_async_TAsyncProt
 SHA1 (patch-lib_cpp_src_async_TEvhttpServer.cpp) = 84558ef95935914cccb74405031bc532c9b180ad
 SHA1 (patch-lib_cpp_src_concurrency_FunctionRunner.h) = 8e15b54872ad0bb59276d25d7200517382a9fcb4
 SHA1 (patch-lib_cpp_src_concurrency_ThreadManager.h) = e97795f632ed98c19172fa25ff6a83a0c9580ff2
+SHA1 (patch-lib_cpp_src_protocol_TBase64Utils.cpp) = 27ad47af3f263e7f0d2a8bef397a8e35e3c0bd82
 SHA1 (patch-lib_cpp_src_server_TNonblockingServer.cpp) = 1f94bcad637279b151b8c0830854c5fc72919e68
 SHA1 (patch-lib_cpp_src_transport_TFileTransport.cpp) = e3d68d0287388dfd81c94555c3437fa8aafcea06
 SHA1 (patch-lib_cpp_src_transport_TSSLSocket.cpp) = 5b0ee2a0d276affc4ead52492e0100f4c0665550

Added files:

Index: pkgsrc/devel/libthrift/patches/patch-lib_cpp_src_protocol_TBase64Utils.cpp
diff -u /dev/null pkgsrc/devel/libthrift/patches/patch-lib_cpp_src_protocol_TBase64Utils.cpp:1.1
--- /dev/null   Sat Sep 16 12:30:28 2017
+++ pkgsrc/devel/libthrift/patches/patch-lib_cpp_src_protocol_TBase64Utils.cpp  Sat Sep 16 12:30:28 2017
@@ -0,0 +1,46 @@
+$NetBSD: patch-lib_cpp_src_protocol_TBase64Utils.cpp,v 1.1 2017/09/16 12:30:28 tnn Exp $
+
+error: narrowing conversion of '-1' from 'int' to
+'__uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
+
+--- lib/cpp/src/protocol/TBase64Utils.cpp.orig 2011-08-11 13:18:59.000000000 +0000
++++ lib/cpp/src/protocol/TBase64Utils.cpp
+@@ -44,22 +44,22 @@ void  base64_encode(const uint8_t *in, u
+ }
+ 
+ static const uint8_t kBase64DecodeTable[256] ={
+-  -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,
+-  -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,
+-  52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,
+-  -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,
+-  15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,
+-  -1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,
+-  41,42,43,44,45,46,47,48,49,50,51,-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,-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,-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,-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,-1,-1,-1,-1,-1,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,
++  52,53,54,55,56,57,58,59,60,61,255,255,255,255,255,255,
++  255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,
++  15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,
++  255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,
++  41,42,43,44,45,46,47,48,49,50,51,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
++  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ };
+ 
+ void base64_decode(uint8_t *buf, uint32_t len) {



Home | Main Index | Thread Index | Old Index