Skip to content

Commit

Permalink
MDEV-19522 fixup: Integer type mismatch in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Oct 21, 2021
1 parent 1a2308d commit fbb1e92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/unittest/innodb_fts-t.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
struct fts_encode_info
{
const byte buf[10];
int32_t len;
size_t len;
doc_id_t val;
};

Expand Down Expand Up @@ -40,7 +40,7 @@ int main(int, char**)
{
byte buf[10];
const byte* fts_buf= buf;
int32_t len= fts_encode_int(fts_info[i].val, buf) - &buf[0];
size_t len= fts_encode_int(fts_info[i].val, buf) - &buf[0];
if (fts_info[i].len == len &&
!memcmp(&fts_info[i].buf, buf, len) &&
fts_decode_vlc(&fts_buf) == fts_info[i].val &&
Expand Down

0 comments on commit fbb1e92

Please sign in to comment.