summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-04-30 01:05:15 +0400
committerunknown <sergefp@mysql.com>2005-04-30 01:05:15 +0400
commit9319613191a8acf8d1f65c1517cdca96bff07ec9 (patch)
treef9810dc5643a4541328eab61866566f80b1951ae /sql
parentf8e45de365d50181a32a6b17106f0c91441766fe (diff)
downloadmariadb-git-9319613191a8acf8d1f65c1517cdca96bff07ec9.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')
-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));
}