summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-03-25 15:41:10 +0400
committerAlexander Barkov <bar@mariadb.org>2016-03-25 15:41:10 +0400
commit69b5c4a4220c8fa98bbca8b3f935b2a3735e19ac (patch)
tree4bd30b5c5c29a9c2698f5fa538029ccb9963710f
parent2481ed22455d430bce889cb25865b1f878c348ae (diff)
downloadmariadb-git-69b5c4a4220c8fa98bbca8b3f935b2a3735e19ac.tar.gz
Fixing the return data type of my_charlen() from "uint" to "int",
as it can return negative values. The typo was introduced in the patch for MDEV-9665 in 10.2.0.
-rw-r--r--include/m_ctype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/m_ctype.h b/include/m_ctype.h
index 104f8694f18..615ee6ac1c6 100644
--- a/include/m_ctype.h
+++ b/include/m_ctype.h
@@ -992,7 +992,7 @@ uint my_ismbchar(CHARSET_INFO *cs, const char *str, const char *end)
Note, inlike my_ismbchar(), 1 is returned for a single byte character.
*/
static inline
-uint my_charlen(CHARSET_INFO *cs, const char *str, const char *end)
+int my_charlen(CHARSET_INFO *cs, const char *str, const char *end)
{
return (cs->cset->charlen)(cs, (const uchar *) str,
(const uchar *) end);