diff --git a/tests/gobject/testgobject.c b/tests/gobject/testgobject.c index 9302278e5..391e01852 100644 --- a/tests/gobject/testgobject.c +++ b/tests/gobject/testgobject.c @@ -206,7 +206,6 @@ test_object_init (TestObject *tobject) priv = TEST_OBJECT_GET_PRIVATE (tobject); g_assert (priv); - g_assert ((gchar *)priv >= (gchar *)tobject + sizeof (TestObject)); priv->dummy1 = 54321; } @@ -359,12 +358,10 @@ derived_object_init (DerivedObject *dobject) derived_priv = DERIVED_OBJECT_GET_PRIVATE (dobject); g_assert (derived_priv); - g_assert ((gchar *)derived_priv >= (gchar *)TEST_OBJECT_GET_PRIVATE (dobject) + sizeof (TestObjectPrivate)); test_priv = TEST_OBJECT_GET_PRIVATE (dobject); g_assert (test_priv); - g_assert ((gchar *)test_priv >= (gchar *)dobject + sizeof (TestObject)); }