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 Jan 15, 2025
1 parent 0494ce7 commit 7ccfd91
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, hasparent ? -1 : 0);
if (err) {
return err;
}
Expand Down

0 comments on commit 7ccfd91

Please sign in to comment.