Skip to content

Commit

Permalink
Merge pull request #863 from littlefs-project/fix-conversion-warning
Browse files Browse the repository at this point in the history
Fix integer conversion warning from Code Composer Studio
  • Loading branch information
geky authored Sep 3, 2023
2 parents 531d5e5 + d775b46 commit 130790f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 130790f

Please sign in to comment.