mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 03:38:31 +00:00
Fix SQLite regressions caused by 3b086af91
This commit is contained in:
parent
bdc453b22d
commit
3851025b77
7 changed files with 25 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue