[gobject-introspection] typelib: Don't fail on minor version



commit 674f1664a7246f968535d4777a81cafa6130ccdc
Author: Colin Walters <walters verbum org>
Date:   Mon Oct 11 12:40:15 2010 -0400

    typelib: Don't fail on minor version
    
    Previously we bombed out if the minor version didn't match what
    we expected; this was silly since the whole point of the minor
    version is to enumerate compatible changes.

 girepository/gitypelib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c
index 9e818b9..cab697a 100644
--- a/girepository/gitypelib.c
+++ b/girepository/gitypelib.c
@@ -288,7 +288,7 @@ validate_header_basic (const guint8   *memory,
 
     }
 
-  if (header->major_version != 4 || header->minor_version != 0)
+  if (header->major_version != 4)
     {
       g_set_error (error,
 		   G_TYPELIB_ERROR,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]