mirror of
https://gitee.com/openharmony/third_party_littlefs
synced 2025-02-17 06:08:16 +00:00
Fixed implicit change-of-sign warning in lfs_dir_fetch
Warning on MDK v5.27.1 Found by geniusgogo
This commit is contained in:
parent
64dedee2d1
commit
60e67ae080
3
lfs.c
3
lfs.c
@ -977,7 +977,8 @@ static int lfs_dir_fetch(lfs_t *lfs,
|
||||
lfs_mdir_t *dir, const lfs_block_t pair[2]) {
|
||||
// note, mask=-1, tag=-1 can never match a tag since this
|
||||
// pattern has the invalid bit set
|
||||
return (int)lfs_dir_fetchmatch(lfs, dir, pair, -1, -1, NULL, NULL, NULL);
|
||||
return (int)lfs_dir_fetchmatch(lfs, dir, pair,
|
||||
(lfs_tag_t)-1, (lfs_tag_t)-1, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
static int lfs_dir_getgstate(lfs_t *lfs, const lfs_mdir_t *dir,
|
||||
|
Loading…
x
Reference in New Issue
Block a user