Skip to content

Commit a603b46

Browse files
committed
Fix warnings
1 parent 7a01e64 commit a603b46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sql/handler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ uint get_sql_xid(XID *xid, char *buf)
20792079
MY_INT64_NUM_DECIMAL_DIGITS, -10, xid->formatID);
20802080
}
20812081

2082-
return buf - orig_buf;
2082+
return (uint)(buf - orig_buf);
20832083
}
20842084

20852085

sql/semisync_master_ack_receiver.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void Ack_receiver::run()
254254
struct timeval tv= {1, 0};
255255
fds= read_fds;
256256
/* select requires max fd + 1 for the first argument */
257-
ret= select(max_fd+1, &fds, NULL, NULL, &tv);
257+
ret= select((int)(max_fd+1), &fds, NULL, NULL, &tv);
258258
if (ret <= 0)
259259
{
260260
mysql_mutex_unlock(&m_mutex);

sql/sql_base.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5657,7 +5657,7 @@ find_field_in_table(THD *thd, TABLE *table, const char *name, uint length,
56575657
DBUG_EVALUATE_IF("test_completely_invisible", 0, 1))
56585658
DBUG_RETURN((Field*)0);
56595659

5660-
*cached_field_index_ptr= field_ptr - table->field;
5660+
*cached_field_index_ptr= (uint)(field_ptr - table->field);
56615661
field= *field_ptr;
56625662
}
56635663
else

0 commit comments

Comments
 (0)