summaryrefslogtreecommitdiff
path: root/storage/myisam
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@macbook.gmz>2007-11-21 18:52:38 +0200
committerunknown <gkodinov/kgeorge@macbook.gmz>2007-11-21 18:52:38 +0200
commit0b489d3fd371d6d548f94249cf10d9435df2c717 (patch)
treea7624f0f524775c2c47ca35e258c41836251c4c8 /storage/myisam
parent70e228763bebc4a9f52927154d265365323def9a (diff)
downloadmariadb-git-0b489d3fd371d6d548f94249cf10d9435df2c717.tar.gz
Bug #31171: test alter_table, fulltext2, ps, sp fail,
"Table is already up to date" vs. "OK" On MacOSX 10.5 when you cast something to "bool" (the built in C type) it takes values 0 or 1 instead of 0-255 as it seems to be on older compilers. Fixed by removing the typecast (not needed). No test case needed : there are tests that test it. storage/myisam/mi_open.c: Bug #31171: don't typecast when not needed
Diffstat (limited to 'storage/myisam')
-rw-r--r--storage/myisam/mi_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisam/mi_open.c b/storage/myisam/mi_open.c
index b848c822f75..0f5d820488c 100644
--- a/storage/myisam/mi_open.c
+++ b/storage/myisam/mi_open.c
@@ -916,7 +916,7 @@ uchar *mi_state_info_read(uchar *ptr, MI_STATE_INFO *state)
key_blocks=state->header.max_block_size_index;
state->open_count = mi_uint2korr(ptr); ptr +=2;
- state->changed= (bool) *ptr++;
+ state->changed= *ptr++;
state->sortkey = (uint) *ptr++;
state->state.records= mi_rowkorr(ptr); ptr +=8;
state->state.del = mi_rowkorr(ptr); ptr +=8;