summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-12-06 10:27:59 +0400
committerAlexander Barkov <bar@mariadb.com>2019-12-06 10:27:59 +0400
commit00445652dbe1631699d860c4eb2263d9c29256a9 (patch)
tree00d3b1f5eeed4f2a7d5e8c675f50d967c0c658eb /client
parent1b040ce5700bfcc331831876fc1e85610b5219e0 (diff)
downloadmariadb-git-00445652dbe1631699d860c4eb2263d9c29256a9.tar.gz
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.
Diffstat (limited to 'client')
-rw-r--r--client/mariadb-conv.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mariadb-conv.cc b/client/mariadb-conv.cc
index c9185d48bbf..03018a93dbc 100644
--- a/client/mariadb-conv.cc
+++ b/client/mariadb-conv.cc
@@ -188,7 +188,7 @@ protected:
}
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()
@@ -205,7 +205,7 @@ public:
m_has_delimiter_cached= false;
for ( ; *str; str++)
{
- if (*str < 0)
+ if ((signed char) *str < 0)
return true;
if (*str == '\\')
{