summaryrefslogtreecommitdiff
path: root/sql-common/my_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'sql-common/my_user.c')
-rw-r--r--sql-common/my_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql-common/my_user.c b/sql-common/my_user.c
index d6f2818ad77..0b72e002977 100644
--- a/sql-common/my_user.c
+++ b/sql-common/my_user.c
@@ -44,8 +44,8 @@ void parse_user(const char *user_id_str, size_t user_id_len,
}
else
{
- *user_name_len= p - user_id_str;
- *host_name_len= user_id_len - *user_name_len - 1;
+ *user_name_len= (uint) (p - user_id_str);
+ *host_name_len= (uint) (user_id_len - *user_name_len - 1);
if (*user_name_len > USERNAME_LENGTH)
*user_name_len= USERNAME_LENGTH;