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:
parent
f8e45de365
commit
9319613191
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user