Commit c88e3bfc authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

GtkStyleSet: Prevent from possible underflow.

parent 51b74204
......@@ -309,7 +309,12 @@ compare_property (gconstpointer p1,
PropertyNode *key = (PropertyNode *) p1;
PropertyNode *node = (PropertyNode *) p2;
return (int) key->property_quark - node->property_quark;
if (key->property_quark > node->property_quark)
return 1;
else if (key->property_quark < node->property_quark)
return -1;
return 0;
}
static PropertyNode *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment