aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libtoolVersion.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtoolVersion.ts b/src/libtoolVersion.ts
index 0525f5c08..8800fde03 100644
--- a/src/libtoolVersion.ts
+++ b/src/libtoolVersion.ts
@@ -49,7 +49,7 @@ export function compare(me: string, other: string): VersionMatchResult|undefined
return undefined;
}
- const compatible = (meVer.current <= otherVer.current &&
+ const compatible = (meVer.current - meVer.age <= otherVer.current &&
meVer.current >= (otherVer.current - otherVer.age));
const currentCmp = Math.sign(meVer.current - otherVer.current);