diff options
-rw-r--r-- | client/mariadb-conv.cc | 4 |
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 == '\\') { |