From 9319613191a8acf8d1f65c1517cdca96bff07ec9 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 30 Apr 2005 01:05:15 +0400 Subject: Fix for BUG#10274: In Protocol_simple::store_long don't make any assumptions about relative sizes of int/long/longlong. --- sql/protocol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/protocol.cc') diff --git a/sql/protocol.cc b/sql/protocol.cc index 485605ce8cd..91061426f04 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -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)); } -- cgit v1.2.1