MDEV-36056 Fix VS2019 compilation

Fix casts introduced by dbfee9fc2bc8 in MDEV-34348
This commit is contained in:
Vladislav Vaintroub 2025-02-10 14:32:47 +01:00
parent 565a0cebd8
commit c9fe55ff7a
2 changed files with 9 additions and 8 deletions

View File

@ -3762,10 +3762,11 @@ static void free_block(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block)
static int cmp_sec_link(const void *_a, const void *_b)
{
BLOCK_LINK *const *a= _a;
BLOCK_LINK *const *b= _b;
return (((*a)->hash_link->diskpos < (*b)->hash_link->diskpos) ? -1 :
((*a)->hash_link->diskpos > (*b)->hash_link->diskpos) ? 1 : 0);
const BLOCK_LINK *a= *(const BLOCK_LINK **)_a;
const BLOCK_LINK *b= *(const BLOCK_LINK **)_b;
return (a->hash_link->diskpos < b->hash_link->diskpos) ? -1 :
(a->hash_link->diskpos > b->hash_link->diskpos) ? 1 : 0;
}

View File

@ -4726,10 +4726,10 @@ static my_bool free_block(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block,
static int cmp_sec_link(const void *a_, const void *b_)
{
PAGECACHE_BLOCK_LINK *const *a= a_;
PAGECACHE_BLOCK_LINK *const *b= b_;
return (((*a)->hash_link->pageno < (*b)->hash_link->pageno) ? -1 :
((*a)->hash_link->pageno > (*b)->hash_link->pageno) ? 1 : 0);
const PAGECACHE_BLOCK_LINK *a= *(const PAGECACHE_BLOCK_LINK **) a_;
const PAGECACHE_BLOCK_LINK *b= *(const PAGECACHE_BLOCK_LINK **) b_;
return ((a->hash_link->pageno < b->hash_link->pageno) ? -1 :
(a->hash_link->pageno > b->hash_link->pageno) ? 1 : 0);
}