From 152d03043ccab2ca6c454dd6cef43dc072d5810a Mon Sep 17 00:00:00 2001 From: Amilcar Ubiera Date: Wed, 15 Jan 2025 14:22:12 -0500 Subject: [PATCH] Fix for "unsafe use of type bool" warning when compiling with MSVC. --- lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs.c b/lfs.c index 7520f2ea..00a0a545 100644 --- a/lfs.c +++ b/lfs.c @@ -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; }