Skip to content

Commit

Permalink
Add explicit cast to uint32_t
Browse files Browse the repository at this point in the history
Otherwise the condition is always true for 64-bit architectures.
  • Loading branch information
StefanBalt committed Apr 24, 2024
1 parent d43050a commit 4696e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ff_fat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ uint32_t FF_CountFreeClusters( FF_IOManager_t * pxIOManager,
{
ulFreeClusters = FF_getLong( pxBuffer->pucBuffer, 488 );

if( ulFreeClusters != ~0ul )
if( ulFreeClusters != ( uint32_t ) ~0ul )
{
xInfoKnown = pdTRUE;
}
Expand Down

0 comments on commit 4696e0d

Please sign in to comment.