summaryrefslogtreecommitdiff
path: root/include/m_ctype.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-04-29 17:39:48 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-04-29 17:53:21 +0300
commitb2c47400349fcd2a8d5d43bb711f1bfbb48c8485 (patch)
treed7dbb4c08c05a1e034eb8019545b9d1a7a8e6d7d /include/m_ctype.h
parentbaa5a43d8cb2f747eeb70d394a362fb5f3fdd194 (diff)
downloadmariadb-git-b2c47400349fcd2a8d5d43bb711f1bfbb48c8485.tar.gz
Fix some -Wsign-conversion
InnoDB was using int64_t instead of ha_rows (unsigned 64-bit).
Diffstat (limited to 'include/m_ctype.h')
-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 8302c85c0e7..fc51ebd3c8b 100644
--- a/include/m_ctype.h
+++ b/include/m_ctype.h
@@ -1093,7 +1093,7 @@ my_well_formed_length(CHARSET_INFO *cs, const char *b, const char *e,
MY_STRCOPY_STATUS status;
(void) cs->cset->well_formed_char_length(cs, b, e, nchars, &status);
*error= status.m_well_formed_error_pos == NULL ? 0 : 1;
- return status.m_source_end_pos - b;
+ return (size_t) (status.m_source_end_pos - b);
}