summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2005-04-30 01:05:15 +0400
committersergefp@mysql.com <>2005-04-30 01:05:15 +0400
commit96aeab05d103093079b4decb97277bcd5c548e00 (patch)
treef9810dc5643a4541328eab61866566f80b1951ae /sql/protocol.cc
parent4b9f462da72bf125f74d3640946607c9735e471f (diff)
downloadmariadb-git-96aeab05d103093079b4decb97277bcd5c548e00.tar.gz
Fix for BUG#10274: In Protocol_simple::store_long don't make any assumptions about
relative sizes of int/long/longlong.
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc2
1 files changed, 1 insertions, 1 deletions
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));
}