mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
Fixed c++11-narrowing errors for C++11 compatibility
char(0x80): constant expression evaluates to -128 which cannot be narrowed to type 'unsigned char' [-Wc++11-narrowing]
This commit is contained in:
parent
c36d945c51
commit
642efc8d00
1 changed files with 4 additions and 4 deletions
|
@ -20,10 +20,10 @@ namespace {
|
|||
|
||||
static const Tab tab[] =
|
||||
{
|
||||
{ char(0x80), char(0x00), 0*6, 0x7F, }, // 1 byte sequence
|
||||
{ char(0xE0), char(0xC0), 1*6, 0x7FF, }, // 2 byte sequence
|
||||
{ char(0xF0), char(0xE0), 2*6, 0xFFFF, }, // 3 byte sequence
|
||||
{ 0, 0, 0, 0, } // end of table
|
||||
{ (unsigned char)(0x80), (unsigned char)(0x00), 0*6, 0x7F, }, // 1 byte sequence
|
||||
{ (unsigned char)(0xE0), (unsigned char)(0xC0), 1*6, 0x7FF, }, // 2 byte sequence
|
||||
{ (unsigned char)(0xF0), (unsigned char)(0xE0), 2*6, 0xFFFF, }, // 3 byte sequence
|
||||
{ 0, 0, 0, 0, } // end of table
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
|
Loading…
Reference in a new issue