diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-11-16 11:58:24 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-11-16 11:58:24 -0600 |
commit | 1d3272d005ff3bf6de0614c2ef10c0e92fa75ed0 (patch) | |
tree | 769b6afef0155888e1bb67a58b14cbd7d5ded606 /tests/test-device.cc | |
parent | a911ab8ede02014c072a4845055e1b15ac9b7c7c (diff) | |
download | ayatana-indicator-power-1d3272d005ff3bf6de0614c2ef10c0e92fa75ed0.tar.gz ayatana-indicator-power-1d3272d005ff3bf6de0614c2ef10c0e92fa75ed0.tar.bz2 ayatana-indicator-power-1d3272d005ff3bf6de0614c2ef10c0e92fa75ed0.zip |
explicitly cast integral values to the correct type when passing them to a varargs function.
Diffstat (limited to 'tests/test-device.cc')
-rw-r--r-- | tests/test-device.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc index 021404f..d9d7956 100644 --- a/tests/test-device.cc +++ b/tests/test-device.cc @@ -199,11 +199,11 @@ TEST_F(DeviceTest, NewFromVariant) GVariant * variant = g_variant_new ("(susdut)", "/object/path", - UP_DEVICE_KIND_BATTERY, + (guint32) UP_DEVICE_KIND_BATTERY, "icon", - 50.0, - UP_DEVICE_STATE_CHARGING, - 30); + (gdouble) 50.0, + (guint32) UP_DEVICE_STATE_CHARGING, + (guint64) 30); IndicatorPowerDevice * device = indicator_power_device_new_from_variant (variant); ASSERT_TRUE (variant != NULL); ASSERT_TRUE (device != NULL); |