Commit 96aeab05 authored by sergefp@mysql.com's avatar sergefp@mysql.com

Fix for BUG#10274: In Protocol_simple::store_long don't make any assumptions about

relative sizes of int/long/longlong.
 
parent 4b9f462d
......@@ -810,7 +810,7 @@ bool Protocol_simple::store_long(longlong from)
#endif
char buff[20];
return net_store_data((char*) buff,
(uint) (int10_to_str((int)from,buff, (from <0)?-10:10)-buff));
(uint) (int10_to_str((long int)from,buff, (from <0)?-10:10)-buff));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment