mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 16:29:36 +03:00
attempt to remove unintended sign extension warning in fs backing store
This commit is contained in:
parent
718da3ffff
commit
3217c82cdb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user