summaryrefslogtreecommitdiff
path: root/mysys/my_bitmap.c
diff options
context:
space:
mode:
authormonty@mysql.com/narttu.mysql.fi <>2007-01-29 01:47:35 +0200
committermonty@mysql.com/narttu.mysql.fi <>2007-01-29 01:47:35 +0200
commit410fc81a726d586e67b45beb0406e1e681494ce4 (patch)
tree9a81ea8e9e695584f7915cc104eda630d7b98bc8 /mysys/my_bitmap.c
parent8a80e36ac3facdfba626fd758b6e4490d3ea9ddf (diff)
downloadmariadb-git-410fc81a726d586e67b45beb0406e1e681494ce4.tar.gz
After merge fixes
Removed a lot of compiler warnings Removed not used variables, functions and labels Initialize some variables that could be used unitialized (fatal bugs) %ll -> %l
Diffstat (limited to 'mysys/my_bitmap.c')
-rw-r--r--mysys/my_bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_bitmap.c b/mysys/my_bitmap.c
index 753537e36ba..10eff40b9ed 100644
--- a/mysys/my_bitmap.c
+++ b/mysys/my_bitmap.c
@@ -171,7 +171,7 @@ void bitmap_free(MY_BITMAP *map)
my_bool bitmap_fast_test_and_set(MY_BITMAP *map, uint bitmap_bit)
{
- uchar *value= (uchar*) (map->bitmap + (bitmap_bit / 8));
+ uchar *value= ((uchar*) map->bitmap) + (bitmap_bit / 8);
uchar bit= 1 << ((bitmap_bit) & 7);
uchar res= (*value) & bit;
*value|= bit;