--- strings/ctype-simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- strings/ctype-simple.c.orig +++ strings/ctype-simple.c @@ -881,7 +881,7 @@ int my_longlong10_to_str_8bit(CHARSET_IN { if (val < 0) { - val = -val; + val = -(ulonglong)val; *dst++= '-'; len--; sign= 1;