Merge pull request #268 from Obg1/master

Fix manifest version greater check
This commit is contained in:
HALX99 2020-11-18 15:41:53 -08:00 committed by GitHub
commit 1059485e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -187,11 +187,11 @@ bool Manifest::versionGreater(const Manifest *b, const std::function<int(const s
bool greater;
if (handle)
{
greater = handle(localVersion, bVersion) >= 0;
greater = handle(localVersion, bVersion) > 0;
}
else
{
greater = cmpVersion(localVersion, bVersion) >= 0;
greater = cmpVersion(localVersion, bVersion) > 0;
}
return greater;
}