attempt to remove unintended sign extension warning in fs backing store

This commit is contained in:
Vincent Sanders 2017-03-05 13:02:47 +00:00
parent 718da3ffff
commit 3217c82cdb

View File

@ -1654,7 +1654,7 @@ static nserror store_write_block(struct store_state *state,
state->blocks_opened = true;
}
offst = bi << log2_block_size[elem_idx];
offst = (unsigned int)bi << log2_block_size[elem_idx];
wr = nsu_pwrite(state->blocks[elem_idx][bf].fd,
bse->elem[elem_idx].data,
@ -1822,7 +1822,7 @@ static nserror store_read_block(struct store_state *state,
state->blocks_opened = true;
}
offst = bi << log2_block_size[elem_idx];
offst = (unsigned int)bi << log2_block_size[elem_idx];
rd = nsu_pread(state->blocks[elem_idx][bf].fd,
bse->elem[elem_idx].data,