diff options
author | monty@mysql.com <> | 2004-02-09 13:59:41 +0100 |
---|---|---|
committer | monty@mysql.com <> | 2004-02-09 13:59:41 +0100 |
commit | cc78e2d97aa2906bfd162e47c97662b9190ec014 (patch) | |
tree | 8a4c27f40f9f6b198bd0c9b9b5a7bf3c49138f78 /strings | |
parent | 3e35cce54dab3f2b303ac5f024503b43de92c8bd (diff) | |
download | mariadb-git-cc78e2d97aa2906bfd162e47c97662b9190ec014.tar.gz |
Ensure that result from date_format() is binary
Removed warnings from test suite
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-simple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index fb2dee99ba5..233251e16a8 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -1021,11 +1021,11 @@ uint my_charpos_8bit(CHARSET_INFO *cs __attribute__((unused)), } uint my_wellformedlen_8bit(CHARSET_INFO *cs __attribute__((unused)), - const char *b, - const char *e, + const char *start, + const char *end, uint nchars) { - uint nbytes= e-b; + uint nbytes= (uint) (end-start); return nbytes < nchars ? nbytes : nchars; } |