From f273b7d08e3c91900dd24c8482c8983aacc4ca13 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 20 Jul 2009 22:47:55 +0200 Subject: [PATCH] Fix variable signedness warning in property unit test --- tests/properties.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/properties.c b/tests/properties.c index 5cbddf9c..6d9ecffb 100644 --- a/tests/properties.c +++ b/tests/properties.c @@ -125,21 +125,22 @@ properties_object_get_set (GObject* object) if (pspec_is_writable (pspec)) { + gint k; g_object_set (object, property, G_PARAM_SPEC_ENUM (pspec)->default_value, NULL); - for (j = enum_class->minimum; j < enum_class->maximum; j++) + for (k = enum_class->minimum; k < enum_class->maximum; k++) { - GEnumValue* enum_value = g_enum_get_value (enum_class, j); + GEnumValue* enum_value = g_enum_get_value (enum_class, k); if (!enum_value) g_error ("%s.%s has no value %d", - G_OBJECT_TYPE_NAME (object), property, j); + G_OBJECT_TYPE_NAME (object), property, k); GEnumValue* enum_value_ = g_enum_get_value_by_name (enum_class, enum_value->value_name); if (!enum_value) g_error ("%s.%s has no value '%s'", G_OBJECT_TYPE_NAME (object), property, enum_value->value_name); g_assert_cmpint (enum_value->value, ==, enum_value_->value); - g_object_set (object, property, j, NULL); + g_object_set (object, property, k, NULL); } } -- 2.39.5