diff --git a/glib/gvarianttypeinfo.c b/glib/gvarianttypeinfo.c index d2df7fd89..8564b778a 100644 --- a/glib/gvarianttypeinfo.c +++ b/glib/gvarianttypeinfo.c @@ -161,7 +161,7 @@ static void g_variant_type_info_check (const GVariantTypeInfo *info, char container_class) { -#ifndef G_DISABLE_ASSERT +#ifdef G_ENABLE_DEBUG g_assert (!container_class || info->container_class == container_class); /* alignment can only be one of these */ @@ -190,7 +190,7 @@ g_variant_type_info_check (const GVariantTypeInfo *info, g_assert (0 <= index && index < 24); g_assert (g_variant_type_info_basic_chars[index][0] != ' '); } -#endif /* !G_DISABLE_ASSERT */ +#endif /* G_ENABLE_DEBUG */ } /* < private >