Skip to content

Commit

Permalink
A cleanup for MDEV-17088 Provide tools to encode/decode mysql-encoded…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
abarkov committed Dec 6, 2019
1 parent 1b040ce commit 0044565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/mariadb-conv.cc
Expand Up @@ -188,7 +188,7 @@ class Delimiter
}
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:
Delimiter()
Expand All @@ -205,7 +205,7 @@ class Delimiter
m_has_delimiter_cached= false;
for ( ; *str; str++)
{
if (*str < 0)
if ((signed char) *str < 0)
return true;
if (*str == '\\')
{
Expand Down

0 comments on commit 0044565

Please sign in to comment.