Fix an issue when setting the file pointer

In true it had no effect, as it's used only in one case,
with the field a 0.
This commit is contained in:
Andrea Mazzoleni 2015-10-01 22:39:09 +02:00
parent 49bcad5448
commit 68309cf013

View file

@ -503,7 +503,7 @@ static inline void block_file_set(struct snapraid_block* block, struct snapraid_
/* LCOV_EXCL_STOP */
}
block->file_mixed = (block->file_mixed & ~(uintptr_t)BLOCK_STATE_MASK) | ptr;
block->file_mixed = (block->file_mixed & (uintptr_t)BLOCK_STATE_MASK) | ptr;
}
/**