mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-6275: Use a non-narrowing conversion
On 32-bit systems, sizeof(uint)==sizeof(long). The C++11 narrowing cast would issue a warning due to the sign mismatch.
This commit is contained in:
parent
2cd45add27
commit
e5fab61a73
1 changed files with 1 additions and 1 deletions
|
@ -1986,7 +1986,7 @@ int spider_db_mbase::connect(
|
|||
} else if (!strcmp(tgt_host, "127.0.0.1") ||
|
||||
!strcmp(tgt_host, glob_hostname))
|
||||
{
|
||||
if (tgt_port == long{*spd_mysqld_port})
|
||||
if (tgt_port == (long) *spd_mysqld_port)
|
||||
{
|
||||
my_printf_error(ER_SPIDER_SAME_SERVER_LINK_NUM,
|
||||
ER_SPIDER_SAME_SERVER_LINK_STR2, MYF(0),
|
||||
|
|
Loading…
Reference in a new issue