mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +00:00
[3526] compilation fix for RedHat on armv7
Thanks to Jiri Popelka for the fix
This commit is contained in:
@@ -54,7 +54,7 @@ namespace {
|
|||||||
/// improve the performance of message rendering (which internally uses the
|
/// improve the performance of message rendering (which internally uses the
|
||||||
/// array heavily) about 27%. Since we want to achieve very good performance
|
/// array heavily) about 27%. Since we want to achieve very good performance
|
||||||
/// for message rendering in some cases, we'll keep using it.
|
/// 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, // 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, // 32
|
||||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 48
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 48
|
||||||
|
@@ -36,7 +36,7 @@ template<class CharType>
|
|||||||
struct to_4_bit {
|
struct to_4_bit {
|
||||||
typedef CharType result_type;
|
typedef CharType result_type;
|
||||||
CharType operator()(CharType t) const{
|
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, // 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, // 10-1f
|
||||||
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 20-2f
|
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 20-2f
|
||||||
|
@@ -38,7 +38,7 @@ template<class CharType>
|
|||||||
struct to_5_bit {
|
struct to_5_bit {
|
||||||
typedef CharType result_type;
|
typedef CharType result_type;
|
||||||
CharType operator()(CharType t) const{
|
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, // 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, // 10-1f
|
||||||
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 20-2f
|
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 20-2f
|
||||||
|
Reference in New Issue
Block a user