From d775b46e3d0b0eaf642878d002d203f4be9b6dfa Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 3 Aug 2023 11:16:40 -0500 Subject: [PATCH] Fixed integer conversion warning from Code Composer Studio Proposed by FiddlingBits --- lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs.c b/lfs.c index 38b825dd..1b6876a6 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