diff options
author | Marc Alff <marc.alff@sun.com> | 2008-07-10 14:41:56 -0600 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2008-07-10 14:41:56 -0600 |
commit | 74f16bc26cdc446519890262615bc20065cf40b8 (patch) | |
tree | 1140c9bcc7183ef17d4cad2f514b304ba8158a67 /libmysqld | |
parent | 21eb9fd0055498ca2530415afb8ef09d4b1a57a9 (diff) | |
download | mariadb-git-74f16bc26cdc446519890262615bc20065cf40b8.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.cc | 3 |
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; |