Skip to content

Commit 7ccfd91

Browse files
committed
Fix for "unsafe use of type bool" warning when compiling with MSVC.
1 parent 0494ce7 commit 7ccfd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ static int lfs_dir_orphaningcommit(lfs_t *lfs, lfs_mdir_t *dir,
25582558
if (err != LFS_ERR_NOENT) {
25592559
if (lfs_gstate_hasorphans(&lfs->gstate)) {
25602560
// next step, clean up orphans
2561-
err = lfs_fs_preporphans(lfs, -hasparent);
2561+
err = lfs_fs_preporphans(lfs, hasparent ? -1 : 0);
25622562
if (err) {
25632563
return err;
25642564
}

0 commit comments

Comments
 (0)