Skip to content

Commit cea7a06

Browse files
authored
Merge pull request #91 from iysheng/gran1
[fdb] Fix mismatch with the comments for status migration when FDB_WR…
2 parents 1bd704d + d4b9a04 commit cea7a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fdb_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ size_t _fdb_set_status(uint8_t status_table[], size_t status_num, size_t status_
102102
if (status_index > 0) {
103103
#if (FDB_WRITE_GRAN == 1)
104104
byte_index = (status_index - 1) / 8;
105-
status_table[byte_index] &= ~(0x80 >> ((status_index - 1) % 8));
105+
status_table[byte_index] &= (0x00ff >> (status_index % 8));
106106
#else
107107
byte_index = (status_index - 1) * (FDB_WRITE_GRAN / 8);
108108
status_table[byte_index] = 0x00;

0 commit comments

Comments
 (0)