From: handa Date: Sun, 4 Apr 2010 23:39:20 +0000 (+0000) Subject: (check_version): Fix previous change. X-Git-Tag: REL-1-6-1~16 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7aa53a53d4c0bd07ee7cccb0cae26291be6ecf60;p=m17n%2Fm17n-lib.git (check_version): Fix previous change. --- 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 *