Skip to content

Commit

Permalink
[fdb] Fix mismatch with the comments for status migration when FDB_WR…
Browse files Browse the repository at this point in the history
…ITE_GRAN eq 1
  • Loading branch information
iysheng committed Aug 16, 2021
1 parent 1bd704d commit d4b9a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fdb_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ size_t _fdb_set_status(uint8_t status_table[], size_t status_num, size_t status_
if (status_index > 0) {
#if (FDB_WRITE_GRAN == 1)
byte_index = (status_index - 1) / 8;
status_table[byte_index] &= ~(0x80 >> ((status_index - 1) % 8));
status_table[byte_index] &= (0x00ff >> (status_index % 8));
#else
byte_index = (status_index - 1) * (FDB_WRITE_GRAN / 8);
status_table[byte_index] = 0x00;
Expand Down

0 comments on commit d4b9a04

Please sign in to comment.