mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix inverted test for success in version parsing.
svn path=/trunk/; revision=687
This commit is contained in:
parent
6a82099f9b
commit
1ff932e7a1
@ -834,15 +834,15 @@ static int
|
||||
compare_version (const char *v1,
|
||||
const char *v2)
|
||||
{
|
||||
gboolean err;
|
||||
gboolean success;
|
||||
int v1_major, v1_minor;
|
||||
int v2_major, v2_minor;
|
||||
|
||||
err = parse_version (v1, &v1_major, &v1_minor);
|
||||
g_assert (!err);
|
||||
|
||||
err = parse_version (v2, &v2_major, &v2_minor);
|
||||
g_assert (!err);
|
||||
success = parse_version (v1, &v1_major, &v1_minor);
|
||||
g_assert (success);
|
||||
|
||||
success = parse_version (v2, &v2_major, &v2_minor);
|
||||
g_assert (success);
|
||||
|
||||
if (v1_major > v2_major)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user