Commit 0b489d3f authored by unknown's avatar unknown

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
parent 70e22876
...@@ -916,7 +916,7 @@ uchar *mi_state_info_read(uchar *ptr, MI_STATE_INFO *state) ...@@ -916,7 +916,7 @@ uchar *mi_state_info_read(uchar *ptr, MI_STATE_INFO *state)
key_blocks=state->header.max_block_size_index; key_blocks=state->header.max_block_size_index;
state->open_count = mi_uint2korr(ptr); ptr +=2; state->open_count = mi_uint2korr(ptr); ptr +=2;
state->changed= (bool) *ptr++; state->changed= *ptr++;
state->sortkey = (uint) *ptr++; state->sortkey = (uint) *ptr++;
state->state.records= mi_rowkorr(ptr); ptr +=8; state->state.records= mi_rowkorr(ptr); ptr +=8;
state->state.del = mi_rowkorr(ptr); ptr +=8; state->state.del = mi_rowkorr(ptr); ptr +=8;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment