summaryrefslogtreecommitdiff
path: root/libmysqld/emb_qcache.cc
diff options
context:
space:
mode:
authorunknown <miguel@hegel.local>2004-05-10 22:25:51 -0300
committerunknown <miguel@hegel.local>2004-05-10 22:25:51 -0300
commit5063cbb9a642905e15edfa4d49f25d677c8b137f (patch)
treed99625a9b8096e0c901da09f9d4b75e97a892164 /libmysqld/emb_qcache.cc
parent4ea5cf8c5afb9f0e5f8deabb7cc2a025312279ef (diff)
downloadmariadb-git-5063cbb9a642905e15edfa4d49f25d677c8b137f.tar.gz
Removing VC++ compiler warnings
Diffstat (limited to 'libmysqld/emb_qcache.cc')
-rw-r--r--libmysqld/emb_qcache.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmysqld/emb_qcache.cc b/libmysqld/emb_qcache.cc
index 0b6416632b7..7d83023abd5 100644
--- a/libmysqld/emb_qcache.cc
+++ b/libmysqld/emb_qcache.cc
@@ -295,7 +295,7 @@ uint emb_count_querycache_size(THD *thd)
cur_row= thd->data->data;
n_rows= thd->data->rows;
}
- result= 4+8 + (42 + 4*n_rows)*mysql->field_count;
+ result= (uint) (4+8 + (42 + 4*n_rows)*mysql->field_count);
for(; field < field_end; field++)
{
@@ -414,8 +414,8 @@ int emb_load_querycache_result(THD *thd, Querycache_stream *src)
goto err;
thd->data= data;
init_alloc_root(&data->alloc, 8192,0);
- row= (MYSQL_ROWS *)alloc_root(&data->alloc, rows * sizeof(MYSQL_ROWS) +
- rows * (mysql->field_count+1)*sizeof(char*));
+ row= (MYSQL_ROWS *)alloc_root(&data->alloc, (uint) (rows * sizeof(MYSQL_ROWS) +
+ rows * (mysql->field_count+1)*sizeof(char*)));
end_row= row + rows;
columns= (MYSQL_ROW)end_row;