From 7aa53a53d4c0bd07ee7cccb0cae26291be6ecf60 Mon Sep 17 00:00:00 2001 From: handa Date: Sun, 4 Apr 2010 23:39:20 +0000 Subject: [PATCH] (check_version): Fix previous change. --- src/database.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database.c b/src/database.c index 3e40096..a31a2c1 100644 --- a/src/database.c +++ b/src/database.c @@ -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 * -- 1.7.10.4