We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 862a237 commit 943feeaCopy full SHA for 943feea
spiffs/spiffs_gc.c
@@ -255,7 +255,7 @@ s32_t spiffs_gc_find_candidate(
255
// align cand_scores on s32_t boundary
256
#pragma GCC diagnostic push
257
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
258
- cand_scores = (s32_t*)(((u32_t)cand_scores + sizeof(s32_t) - 1) & ~(sizeof(s32_t) - 1));
+ cand_scores = (s32_t*)(((ptrdiff_t)cand_scores + sizeof(ptrdiff_t) - 1) & ~(sizeof(ptrdiff_t) - 1));
259
#pragma GCC diagnostic pop
260
261
*block_candidates = cand_blocks;
0 commit comments