|
|||||||||||
|
bk commit into 4.1 tree (kent:1.2685) BUG#30069
From: <kent(at)mysql.com>
Date: Fri Sep 28 2007 - 16:35:49 EDT
ChangeSet@1.2685, 2007-09-28 22:35:48+02:00, kent@mysql.com +1 -0
ctype-simple.c:
strings/ctype-simple.c@1.69, 2007-09-28 22:33:23+02:00, kent@mysql.com +2 -2 Avoid undefined value when negating (bug#30069) diff -Nrup a/strings/ctype-simple.c b/strings/ctype-simple.c --- a/strings/ctype-simple.c 2005-12-12 18:39:13 +01:00 +++ b/strings/ctype-simple.c 2007-09-28 22:33:23 +02:00 @@ -802,7 +802,7 @@ int my_long10_to_str_8bit(CHARSET_INFO * {
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_IN {
if (val < 0)
{
- val = -val;
+ val = -(ulonglong)val;
*dst++= '-';
len--;
sign= 1;
-- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Fri Sep 28 16:36:08 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 09:44:41 EDT |
||||||||||
|
|||||||||||