Fix a warning on Win64

This commit is contained in:
Vladislav Vaintroub 2017-10-24 15:56:54 +00:00
commit b56560ed39

View file

@ -8673,7 +8673,7 @@ User_var_log_event(const char* buf, uint event_len,
Old events will not have this extra byte, thence,
we keep the flags set to UNDEF_F.
*/
uint bytes_read= ((val + val_len) - buf_start);
uint bytes_read= (uint)((val + val_len) - buf_start);
if ((data_written - bytes_read) > 0)
{
flags= (uint) *(buf + UV_VAL_IS_NULL + UV_VAL_TYPE_SIZE +