Commit 93196131 authored by unknown's avatar unknown
Browse files

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

relative sizes of int/long/longlong.
 

parent f8e45de3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));
}