mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-11-16 12:34:34 +00:00
Fixed integer conversion warning from Code Composer Studio
Proposed by FiddlingBits
This commit is contained in:
2
lfs.c
2
lfs.c
@@ -1628,7 +1628,7 @@ static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) {
|
||||
}
|
||||
|
||||
// space for fcrc?
|
||||
uint8_t eperturb = -1;
|
||||
uint8_t eperturb = (uint8_t)-1;
|
||||
if (noff >= end && noff <= lfs->cfg->block_size - lfs->cfg->prog_size) {
|
||||
// first read the leading byte, this always contains a bit
|
||||
// we can perturb to avoid writes that don't change the fcrc
|
||||
|
||||
Reference in New Issue
Block a user