Commit 0c92e904 authored by miguel@hegel.local's avatar miguel@hegel.local

Cast for VC++ compiler errors

parent 9c3f2158
...@@ -2638,7 +2638,7 @@ Create_file_log_event::Create_file_log_event(const char* buf, int len, ...@@ -2638,7 +2638,7 @@ Create_file_log_event::Create_file_log_event(const char* buf, int len,
We must make copy of 'buf' as this event may have to live over a We must make copy of 'buf' as this event may have to live over a
rotate log entry when used in mysqlbinlog rotate log entry when used in mysqlbinlog
*/ */
if (!(event_buf= my_memdup(buf, len, MYF(MY_WME))) || if (!(event_buf= my_memdup((byte*)buf, len, MYF(MY_WME))) ||
(copy_log_event(event_buf, len, old_format))) (copy_log_event(event_buf, len, old_format)))
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
...@@ -2560,8 +2560,8 @@ QUICK_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, TABLE_REF *ref) ...@@ -2560,8 +2560,8 @@ QUICK_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, TABLE_REF *ref)
QUICK_RANGE *null_range; QUICK_RANGE *null_range;
*ref->null_ref_key= 1; // Set null byte then create a range *ref->null_ref_key= 1; // Set null byte then create a range
if (!(null_range= new QUICK_RANGE(ref->key_buff, ref->key_length, if (!(null_range= new QUICK_RANGE((char*)ref->key_buff, ref->key_length,
ref->key_buff, ref->key_length, (char*)ref->key_buff, ref->key_length,
EQ_RANGE))) EQ_RANGE)))
goto err; goto err;
*ref->null_ref_key= 0; // Clear null byte *ref->null_ref_key= 0; // Clear null byte
......
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