Skip to content

Commit

Permalink
<?> Fix compilation error bad-function-cast.
Browse files Browse the repository at this point in the history
error: cast from function call of type '_Bool' to non-matching type 'unsigned int' [-Werror=bad-function-cast]

COMMIT_INFO:{
      "branch": "Fix_compilation_error_GCC_10_3_0",
        "task": "<?>",
         "url": "<?>"
}
  • Loading branch information
opilat committed Nov 8, 2021
1 parent ead5080 commit c237d93
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 @@ -4095,7 +4095,7 @@ static int lfs_fs_preporphans(lfs_t *lfs, int8_t orphans) {
LFS_ASSERT(lfs_tag_size(lfs->gstate.tag) > 0 || orphans >= 0);
lfs->gstate.tag += orphans;
lfs->gstate.tag = ((lfs->gstate.tag & ~LFS_MKTAG(0x800, 0, 0)) |
((uint32_t)lfs_gstate_hasorphans(&lfs->gstate) << 31));
(lfs_gstate_hasorphans(&lfs->gstate) ? (1ul << 31) : 0));

return 0;
}
Expand Down

0 comments on commit c237d93

Please sign in to comment.