Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <geky@geky.net>2023-08-03 19:16:40 +0300
committerChristopher Haster <geky@geky.net>2023-08-03 19:16:40 +0300
commitd775b46e3d0b0eaf642878d002d203f4be9b6dfa (patch)
tree2e0627d37a70a9218cdc82deba940680589b82eb
parent611c9b20db2b99faee261daa7cc9bbe175d3eaca (diff)
Fixed integer conversion warning from Code Composer Studiofix-conversion-warning
Proposed by FiddlingBits
-rw-r--r--lfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lfs.c b/lfs.c
index 38b825d..1b6876a 100644
--- a/lfs.c
+++ b/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