gobject-introspection r687 - in trunk: . girepository
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r687 - in trunk: . girepository
- Date: Sun, 12 Oct 2008 21:03:41 +0000 (UTC)
Author: walters
Date: Sun Oct 12 21:03:41 2008
New Revision: 687
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=687&view=rev
Log:
Fix inverted test for success in version parsing.
Modified:
trunk/ChangeLog
trunk/girepository/girepository.c
Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c (original)
+++ trunk/girepository/girepository.c Sun Oct 12 21:03:41 2008
@@ -834,15 +834,15 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]