revision-id: 988bf893b13db2795d9f08d7b6263f59b50e18e0 (mariadb-10.5.0-330-g988bf893b13) parent(s): 9ae015878f11be3e3033fd1b35357ea5927c6c51 author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2020-03-10 16:49:01 +0300 message: Fix compilation on 32-bit Windows. --- sql/filesort.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/filesort.cc b/sql/filesort.cc index 56f060b8c26..20a0d341971 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -2773,8 +2773,8 @@ int SORT_FIELD_ATTR::compare_packed_varstrings(uchar *a, size_t *a_len, else *a_len= *b_len= 0; - a_length= read_lowendian(a, length_bytes); - b_length= read_lowendian(b, length_bytes); + a_length= (size_t)read_lowendian(a, length_bytes); + b_length= (size_t)read_lowendian(b, length_bytes); *a_len+= length_bytes + a_length; *b_len+= length_bytes + b_length;