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 | 0fe5b015de73fbdbe018148d3c6f9dee032a1096 (patch) | |
tree | 1140c9bcc7183ef17d4cad2f514b304ba8158a67 /libmysqld/emb_qcache.cc | |
parent | d853a0916304e79eb15ef6d94ac7bdd4c5a9f2f2 (diff) | |
download | mariadb-git-0fe5b015de73fbdbe018148d3c6f9dee032a1096.tar.gz |
Fixed build warning on Windows (emb_qcache.cc)
Diffstat (limited to 'libmysqld/emb_qcache.cc')
-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; |