1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

More code cleanups

Remove Histogram_*::is_available(), it is not applicable anymore.
Fix compilation on Windows
This commit is contained in:
Sergei Petrunia
2021-09-04 17:24:47 +03:00
parent 1d98168547
commit 9271bd17f7
4 changed files with 11 additions and 26 deletions

View File

@@ -1271,7 +1271,7 @@ void Histogram_binary::init_for_collection(MEM_ROOT *mem_root,
ulonglong size_arg)
{
type= htype_arg;
values = (uchar*)alloc_root(mem_root, size_arg);
values= (uchar*)alloc_root(mem_root, (size_t)size_arg);
size= (uint8) size_arg;
}