(check_version): Fix previous change.
authorhanda <handa>
Sun, 4 Apr 2010 23:39:20 +0000 (23:39 +0000)
committerhanda <handa>
Sun, 4 Apr 2010 23:39:20 +0000 (23:39 +0000)
src/database.c

index 3e40096..a31a2c1 100644 (file)
@@ -551,11 +551,11 @@ check_version (MText *version)
        break;
       ver[i] = ver[i] * 10 + (*verstr - '0');
     }
-  return (ver[0] > M17NLIB_MAJOR_VERSION
+  return (ver[0] < M17NLIB_MAJOR_VERSION
          || (ver[0] == M17NLIB_MAJOR_VERSION
-             && (ver[1] > M17NLIB_MINOR_VERSION
+             && (ver[1] < M17NLIB_MINOR_VERSION
                  || (ver[1] == M17NLIB_MINOR_VERSION
-                     && ver[2] >= M17NLIB_PATCH_LEVEL))));
+                     && ver[2] <= M17NLIB_PATCH_LEVEL))));
 }
 
 static MDatabase *