summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorMarc Alff <marc.alff@sun.com>2008-07-10 14:41:56 -0600
committerMarc Alff <marc.alff@sun.com>2008-07-10 14:41:56 -0600
commit678f1a86de668c7bba3b3bc1384cbd73d8079d83 (patch)
tree1140c9bcc7183ef17d4cad2f514b304ba8158a67 /libmysqld
parent7c5d30473be2ee98837c6cdc91dc2ae1cf53984f (diff)
downloadmariadb-git-678f1a86de668c7bba3b3bc1384cbd73d8079d83.tar.gz
Fixed build warning on Windows (emb_qcache.cc)
libmysqld/emb_qcache.cc: Fixed build warning on Windows: ported the fix from 6.0 in 5.1
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/emb_qcache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmysqld/emb_qcache.cc b/libmysqld/emb_qcache.cc
index fdd7f8ed776..b4eddf39c1f 100644
--- a/libmysqld/emb_qcache.cc
+++ b/libmysqld/emb_qcache.cc
@@ -447,7 +447,8 @@ int emb_load_querycache_result(THD *thd, Querycache_stream *src)
if (thd->protocol == &thd->protocol_binary)
{
uint length;
- row= (MYSQL_ROWS *)alloc_root(&data->alloc, rows * sizeof(MYSQL_ROWS));
+ row= (MYSQL_ROWS *)alloc_root(&data->alloc,
+ (size_t) (rows * sizeof(MYSQL_ROWS)));
end_row= row + rows;
data->data= row;