summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-04-20 12:35:53 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2015-04-20 13:25:54 +0200
commit449b5b9bfa34b49c1a5f8a4031687befc8bfac82 (patch)
tree201524f7a994e20ad551119155328c8dec6f37ae
parentb43ad50be70c6ad6982b3560dd60b8b6411e1f57 (diff)
downloaddbus-449b5b9bfa34b49c1a5f8a4031687befc8bfac82.tar.gz
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>
-rw-r--r--dbus/dbus-auth-script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-auth-script.c b/dbus/dbus-auth-script.c
index 164743b0..03be4e20 100644
--- a/dbus/dbus-auth-script.c
+++ b/dbus/dbus-auth-script.c
@@ -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))