Skip to content

Commit

Permalink
Fix for "unsafe use of type bool" warning when compiling with MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
amubiera committed Feb 3, 2025
1 parent 0494ce7 commit 152d030
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 @@ -2558,7 +2558,7 @@ static int lfs_dir_orphaningcommit(lfs_t *lfs, lfs_mdir_t *dir,
if (err != LFS_ERR_NOENT) {
if (lfs_gstate_hasorphans(&lfs->gstate)) {
// next step, clean up orphans
err = lfs_fs_preporphans(lfs, -hasparent);
err = lfs_fs_preporphans(lfs, -(int8_t)hasparent);
if (err) {
return err;
}
Expand Down

0 comments on commit 152d030

Please sign in to comment.