Skip to content

Commit

Permalink
compilation error on windows
Browse files Browse the repository at this point in the history
get_rec_bits() must return uchar, it's result is often
assigned to uchar. And len is always less than 8.
  • Loading branch information
vuvova committed Feb 6, 2018
1 parent c98c616 commit 775a8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/my_compare.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ typedef struct st_HA_KEYSEG /* Key-portion */

#define size_to_store_key_length(length) ((length) < 255 ? 1 : 3)

static inline uint16 get_rec_bits(const uchar *ptr, uchar ofs, uint len)
static inline uchar get_rec_bits(const uchar *ptr, uchar ofs, uint len)
{
uint16 val= ptr[0];
if (ofs + len > 8)
Expand Down

0 comments on commit 775a8a0

Please sign in to comment.