Browse Source

ctype-simple.c:

Avoid undefined value when negating (bug#30069)
pull/73/head
kent@mysql.com/kent-amd64.(none) 18 years ago
parent
commit
33ad13280c
  1. 4
      strings/ctype-simple.c

4
strings/ctype-simple.c

@ -802,7 +802,7 @@ int my_long10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
{
if (val < 0)
{
val= -val;
val= -(unsigned long int)val;
*dst++= '-';
len--;
sign= 1;
@ -838,7 +838,7 @@ int my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
{
if (val < 0)
{
val = -val;
val = -(ulonglong)val;
*dst++= '-';
len--;
sign= 1;

Loading…
Cancel
Save