Commit 0ddb67a1 authored by Sergei Golubchik's avatar Sergei Golubchik

fixup! mhnsw: store coordinates in 16 bits, not 32

parent fe2b9746
......@@ -1261,6 +1261,7 @@ int mhnsw_read_first(TABLE *table, KEY *keyinfo, Item *dist, ulonglong limit)
{
res= &buf;
buf.alloc(ctx->byte_len);
buf.length(ctx->byte_len);
for (size_t i=0; i < ctx->vec_len; i++)
((float*)buf.ptr())[i]= i == 0;
}
......
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