Commit fbb1e92e authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-19522 fixup: Integer type mismatch in unit test

parent 1a2308d3
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
struct fts_encode_info struct fts_encode_info
{ {
const byte buf[10]; const byte buf[10];
int32_t len; size_t len;
doc_id_t val; doc_id_t val;
}; };
...@@ -40,7 +40,7 @@ int main(int, char**) ...@@ -40,7 +40,7 @@ int main(int, char**)
{ {
byte buf[10]; byte buf[10];
const byte* fts_buf= buf; 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 && if (fts_info[i].len == len &&
!memcmp(&fts_info[i].buf, buf, len) && !memcmp(&fts_info[i].buf, buf, len) &&
fts_decode_vlc(&fts_buf) == fts_info[i].val && fts_decode_vlc(&fts_buf) == fts_info[i].val &&
......
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