[unique] Fix the check for minor in UNIQUE_CHECK_VERSION



commit a2203280f09b3d259be75330a975d5e9fd2c5bc0
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Tue Oct 20 08:30:20 2009 +0200

    Fix the check for minor in UNIQUE_CHECK_VERSION
    
    https://bugzilla.gnome.org/show_bug.cgi?id=598870
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 unique/uniqueversion.h.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/unique/uniqueversion.h.in b/unique/uniqueversion.h.in
index e8572ea..484c05f 100644
--- a/unique/uniqueversion.h.in
+++ b/unique/uniqueversion.h.in
@@ -112,7 +112,7 @@
  */
 #define UNIQUE_CHECK_VERSION(major,minor,micro) \
         ((UNIQUE_MAJOR_VERSION > (major)) || \
-         (UNIQUE_MAJOR_VERSION == (major) && UNIQUE_MICRO_VERSION > (minor)) || \
-         (UNIQUE_MAJOR_VERSION == (major) && UNIQUE_MICRO_VERSION == (minor) && UNIQUE_MICRO_VERSION > (micro)))
+         (UNIQUE_MAJOR_VERSION == (major) && UNIQUE_MINOR_VERSION > (minor)) || \
+         (UNIQUE_MAJOR_VERSION == (major) && UNIQUE_MINOR_VERSION == (minor) && UNIQUE_MICRO_VERSION > (micro)))
 
 #endif /* __UNIQUE_VERSION_H__ */



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