[Commits] bb853a30b0a: windows warnings fixed.
revision-id: bb853a30b0a5a96bfd665d09940de1d60c71f268 (mariadb-10.2.23-108-gbb853a30b0a) parent(s): e16a0f47ca9244b04d0b02599941a7608a71cfb8 author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2019-05-03 14:59:09 +0200 message: windows warnings fixed. --- sql/item_sum.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 4f03c069fa8..640ff315438 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -3469,7 +3469,7 @@ int copy_to_tree(void* key, element_count count __attribute__((unused)), TABLE *table= st->table; Field* field= table->field[0]; const uchar *ptr= field->ptr_in_record((uchar*)key - table->s->null_bytes); - size_t len= field->val_int(ptr); + size_t len= (size_t)field->val_int(ptr); DBUG_ASSERT(count == 1); if (!tree_insert(&st->tree, key, 0, st->tree.custom_arg)) @@ -3483,13 +3483,13 @@ bool Item_func_group_concat::repack_tree(THD *thd) { struct st_repack_tree st; - init_tree(&st.tree, MY_MIN(thd->variables.max_heap_table_size, - thd->variables.sortbuff_size/16), 0, + init_tree(&st.tree, (size_t) MY_MIN(thd->variables.max_heap_table_size, + thd->variables.sortbuff_size/16), 0, tree->size_of_element, group_concat_key_cmp_with_order, NULL, (void*) this, MYF(MY_THREAD_SPECIFIC)); st.table= table; st.len= 0; - st.maxlen= thd->variables.group_concat_max_len; + st.maxlen= (size_t)thd->variables.group_concat_max_len; tree_walk(tree, ©_to_tree, &st, left_root_right); if (st.len <= st.maxlen) // Copying aborted. Must be OOM {
participants (1)
-
Oleksandr Byelkin