Merge pull request #819 from benpicco/fix-AVR

Fix build for AVR
This commit is contained in:
Christopher Haster 2023-05-23 14:45:34 -05:00 committed by GitHub
commit 5eed341059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
lfs.c
View File

@ -1651,7 +1651,7 @@ static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) {
commit->off = noff;
// perturb valid bit?
commit->ptag = ntag ^ ((0x80 & ~eperturb) << 24);
commit->ptag = ntag ^ ((0x80UL & ~eperturb) << 24);
// reset crc for next commit
commit->crc = 0xffffffff;