Fix SQLite regressions caused by 3b086af91

This commit is contained in:
Justine Tunney 2023-10-13 10:48:04 -07:00
parent bdc453b22d
commit 3851025b77
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 25 additions and 12 deletions

View file

@ -96,7 +96,7 @@ static textwindows bool OverlapsFileLock(struct FileLock *fl, int64_t off,
EndA = off + (len - 1);
BegB = fl->off;
EndB = fl->off + (fl->len - 1);
return MAX(BegA, BegB) < MIN(EndA, EndB);
return MAX(BegA, BegB) <= MIN(EndA, EndB);
}
static textwindows bool EncompassesFileLock(struct FileLock *fl, int64_t off,