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

relative sizes of int/long/longlong.
This commit is contained in:
unknown 2005-04-30 01:05:15 +04:00
parent f8e45de365
commit 9319613191

View File

@ -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));
}