From 0b489d3fd371d6d548f94249cf10d9435df2c717 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 21 Nov 2007 18:52:38 +0200 Subject: [PATCH] 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 --- storage/myisam/mi_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;