Commit 93196131 authored by unknown's avatar unknown

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

relative sizes of int/long/longlong.
 

parent f8e45de3
......@@ -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