diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-10-21 14:35:23 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-10-21 14:35:23 +0300 |
commit | fbb1e92e2553cbc98fbbbe23399f2a4342de41fd (patch) | |
tree | 929e8ac4c27987df32175a7d76f3cf5049c970d3 | |
parent | 1a2308d3f443d8fcacf5506cb96f802dee3a3519 (diff) | |
download | mariadb-git-fbb1e92e2553cbc98fbbbe23399f2a4342de41fd.tar.gz |
MDEV-19522 fixup: Integer type mismatch in unit test
-rw-r--r-- | storage/innobase/unittest/innodb_fts-t.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/unittest/innodb_fts-t.cc b/storage/innobase/unittest/innodb_fts-t.cc index 57585e337c2..4e10c0e439e 100644 --- a/storage/innobase/unittest/innodb_fts-t.cc +++ b/storage/innobase/unittest/innodb_fts-t.cc @@ -5,7 +5,7 @@ struct fts_encode_info { const byte buf[10]; - int32_t len; + size_t len; doc_id_t val; }; @@ -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 && |