Commit 27cf6879 authored by Andrei Elkin's avatar Andrei Elkin

bug#42977

compilation warning fixed
parent 67f9a6d1
......@@ -7764,7 +7764,7 @@ Table_map_log_event::Table_map_log_event(THD *thd, TABLE *tbl, ulong tid,
m_data_size+= m_dblen + 2; // Include length and terminating \0
m_data_size+= m_tbllen + 2; // Include length and terminating \0
cbuf_end= net_store_length(cbuf, (size_t) m_colcnt);
DBUG_ASSERT((cbuf_end - cbuf) <= sizeof(cbuf));
DBUG_ASSERT(static_cast<size_t>(cbuf_end - cbuf) <= sizeof(cbuf));
m_data_size+= (cbuf_end - cbuf) + m_colcnt; // COLCNT and column types
/* If malloc fails, caught in is_valid() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment