Commit 00445652 authored by Alexander Barkov's avatar Alexander Barkov

A cleanup for MDEV-17088 Provide tools to encode/decode mysql-encoded file system names

tests mariadb-conv-utf8 and mariadb-conv-cp932 failed on PPC,
because "char" is "unsigned char" on PPC.

Adding a cast from "char" to "signed char" in the two affected places.
parent 1b040ce5
...@@ -188,7 +188,7 @@ class Delimiter ...@@ -188,7 +188,7 @@ class Delimiter
} }
bool is_delimiter(char ch) const bool is_delimiter(char ch) const
{ {
return ch < 0 ? false : m_delimiter[(uint32) ch]; return (signed char) ch < 0 ? false : m_delimiter[(uint32) ch];
} }
public: public:
Delimiter() Delimiter()
...@@ -205,7 +205,7 @@ class Delimiter ...@@ -205,7 +205,7 @@ class Delimiter
m_has_delimiter_cached= false; m_has_delimiter_cached= false;
for ( ; *str; str++) for ( ; *str; str++)
{ {
if (*str < 0) if ((signed char) *str < 0)
return true; return true;
if (*str == '\\') if (*str == '\\')
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment