diff options
| author | Christian Grothoff <christian@grothoff.org> | 2017-07-01 14:06:39 +0200 |
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2017-07-01 14:08:16 +0200 |
| commit | 76d2def56349a9190b26591dd75b5a0f17697341 (patch) | |
| tree | d134ae8f3baa522c83d8c2cc099b73d7da1d377b /src | |
| parent | fc02e229d9494b19461d11934036690e74773e2a (diff) | |
consider client age in commpatibility check
Diffstat (limited to 'src')
| -rw-r--r-- | src/libtoolVersion.ts | 2 |
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); |
