From 1d3272d005ff3bf6de0614c2ef10c0e92fa75ed0 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 16 Nov 2012 11:58:24 -0600 Subject: explicitly cast integral values to the correct type when passing them to a varargs function. --- tests/test-device.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3