File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ class Filesort_buffer
9494
9595 // / What is the <num_records, record_length> for the buffer?
9696 std::pair<uint, uint> sort_buffer_properties () const
97- { return std::make_pair (m_idx_array.size (), m_record_length); }
97+ {
98+ return std::make_pair (static_cast <uint>(m_idx_array.size ()),
99+ m_record_length);
100+ }
98101
99102 // / Frees the buffer.
100103 void free_sort_buffer ();
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class CSET_STRING
161161 }
162162
163163 inline char *str () const { return string.str ; }
164- inline uint32 length () const { return string.length ; }
164+ inline size_t length () const { return string.length ; }
165165 const CHARSET_INFO *charset () const { return cs; }
166166
167167 friend LEX_STRING * thd_query_string (MYSQL_THD thd);
@@ -3663,7 +3663,7 @@ class THD :public ilink<THD>,
36633663 result= new_db && !db;
36643664#ifdef HAVE_PSI_THREAD_INTERFACE
36653665 if (result)
3666- PSI_CALL (set_thread_db)(new_db, new_db_len);
3666+ PSI_CALL (set_thread_db)(new_db, static_cast< int >( new_db_len) );
36673667#endif
36683668 return result;
36693669 }
@@ -3684,7 +3684,7 @@ class THD :public ilink<THD>,
36843684 db= new_db;
36853685 db_length= new_db_len;
36863686#ifdef HAVE_PSI_THREAD_INTERFACE
3687- PSI_CALL (set_thread_db)(new_db, new_db_len);
3687+ PSI_CALL (set_thread_db)(new_db, static_cast< int >( new_db_len) );
36883688#endif
36893689 }
36903690 /*
Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ class ErrConvString
573573
574574 ~ErrConvString () { };
575575 char *ptr () { return err_buffer; }
576- uint length () const { return buf_length; }
576+ size_t length () const { return buf_length; }
577577};
578578
579579// /////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments