summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi/DictCache.cpp
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-03-29 12:37:36 +0300
committerunknown <monty@mysql.com>2005-03-29 12:37:36 +0300
commit51690eca7e933f9e4164ec628b8b10419a089711 (patch)
treefbaeb086fef12b0ff1fe5346161fa28b308a647e /ndb/src/ndbapi/DictCache.cpp
parentfa4a075b6cb7ba7e71c842e6649bf7e7c516bef2 (diff)
downloadmariadb-git-51690eca7e933f9e4164ec628b8b10419a089711.tar.gz
Cleanups during review
ndb/src/ndbapi/DictCache.cpp: Simpler bit handling code sql/sql_acl.cc: Fix for bool parameter sql/sql_yacc.yy: Removed compiler warning
Diffstat (limited to 'ndb/src/ndbapi/DictCache.cpp')
-rw-r--r--ndb/src/ndbapi/DictCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/DictCache.cpp b/ndb/src/ndbapi/DictCache.cpp
index 9cdd68272ad..da9d5b70d47 100644
--- a/ndb/src/ndbapi/DictCache.cpp
+++ b/ndb/src/ndbapi/DictCache.cpp
@@ -24,7 +24,7 @@
Ndb_local_table_info *
Ndb_local_table_info::create(NdbTableImpl *table_impl, Uint32 sz)
{
- Uint32 tot_size= sizeof(NdbTableImpl *) + ((sz+7)>>3)<<3; // round to Uint64
+ Uint32 tot_size= sizeof(NdbTableImpl *) + ((sz+7) & ~7); // round to Uint64
void *data= malloc(tot_size);
if (data == 0)
return 0;