]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3526] compilation fix for RedHat on armv7
authorTomek Mrugalski <tomasz@isc.org>
Thu, 21 Aug 2014 16:08:58 +0000 (18:08 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 21 Aug 2014 16:08:58 +0000 (18:08 +0200)
 Thanks to Jiri Popelka for the fix

src/lib/dns/name.cc
src/lib/util/encode/binary_from_base16.h
src/lib/util/encode/binary_from_base32hex.h

index ff003744a73f7dd33874d10d9264380b9241dffd..7d34a09e6ff7eaf3e1095bdab8e97a69e2542df2 100644 (file)
@@ -54,7 +54,7 @@ namespace {
 /// improve the performance of message rendering (which internally uses the
 /// array heavily) about 27%.  Since we want to achieve very good performance
 /// for message rendering in some cases, we'll keep using it.
-const char digitvalue[256] = {
+const signed char digitvalue[256] = {
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 16
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 32
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 48
index e9fdd277b17632ec22a050d239436c9caa2b7c8f..307842a83b26451b971e3b22fe7d7c07492e8ab5 100644 (file)
@@ -36,7 +36,7 @@ template<class CharType>
 struct to_4_bit {
     typedef CharType result_type;
     CharType operator()(CharType t) const{
-        const char lookup_table[] = {
+        const signed char lookup_table[] = {
             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 00-0f
             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 10-1f
             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 20-2f
index 43b7d64ddae34efd96931d3b4d8760553f50d15a..457fa3ca75417d877242389a34de7dcc65f55b2e 100644 (file)
@@ -38,7 +38,7 @@ template<class CharType>
 struct to_5_bit {
     typedef CharType result_type;
     CharType operator()(CharType t) const{
-        const char lookup_table[] = {
+        const signed char lookup_table[] = {
             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 00-0f
             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 10-1f
             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 20-2f