summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-03-05 13:02:47 +0000
committerVincent Sanders <vince@kyllikki.org>2017-03-05 13:02:47 +0000
commit3217c82cdb4348960dfbdd978c68721f268fd385 (patch)
treeff9211214bddcd21bff1a46be7e0e36adfa3ae3f
parent718da3ffffd1181a0b5b2d590214bc408ca44117 (diff)
downloadnetsurf-3217c82cdb4348960dfbdd978c68721f268fd385.tar.gz
netsurf-3217c82cdb4348960dfbdd978c68721f268fd385.tar.bz2
attempt to remove unintended sign extension warning in fs backing store
-rw-r--r--content/fs_backing_store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/fs_backing_store.c b/content/fs_backing_store.c
index bcb97d2b6..9d410654b 100644
--- a/content/fs_backing_store.c
+++ b/content/fs_backing_store.c
@@ -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,