mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 12:48:03 +02:00
Fix msvc sign-compare warning on Windows7 64bit by adding a type cast.
The related warning is: C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90089 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
b43ad50be7
commit
449b5b9bfa
1 changed files with 2 additions and 2 deletions
|
|
@ -527,7 +527,7 @@ _dbus_auth_script_run (const DBusString *filename)
|
|||
goto out;
|
||||
}
|
||||
|
||||
_dbus_string_delete (&to_send, where, strlen ("USERID_HEX"));
|
||||
_dbus_string_delete (&to_send, where, (int) strlen ("USERID_HEX"));
|
||||
|
||||
if (!_dbus_string_hex_encode (&username, 0,
|
||||
&to_send, where))
|
||||
|
|
@ -560,7 +560,7 @@ _dbus_auth_script_run (const DBusString *filename)
|
|||
goto out;
|
||||
}
|
||||
|
||||
_dbus_string_delete (&to_send, where, strlen ("USERNAME_HEX"));
|
||||
_dbus_string_delete (&to_send, where, (int) strlen ("USERNAME_HEX"));
|
||||
|
||||
if (!_dbus_string_hex_encode (&username, 0,
|
||||
&to_send, where))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue