mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-05 18:48:55 +01:00
Revert "Fix the cmp implementation for variant values"
This reverts commit 623f92ed2d.
This fix went from one broken state to another. The real fix is to use
g_variant_compare(), which is pending review. See bug #795735.
https://bugzilla.gnome.org/show_bug.cgi?id=795735
This commit is contained in:
@@ -1155,7 +1155,7 @@ param_variant_values_cmp (GParamSpec *pspec,
|
|||||||
GVariant *v1 = value1->data[0].v_pointer;
|
GVariant *v1 = value1->data[0].v_pointer;
|
||||||
GVariant *v2 = value2->data[0].v_pointer;
|
GVariant *v2 = value2->data[0].v_pointer;
|
||||||
|
|
||||||
return v1 < v2 ? -1 : v1 > v2;
|
return v1 < v2 ? -1 : v2 > v1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- type initialization --- */
|
/* --- type initialization --- */
|
||||||
|
|||||||
Reference in New Issue
Block a user