diff options
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r-- | src/os/unix/ngx_files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index 651113d91..7563009da 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -118,7 +118,8 @@ ssize_t ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, if (cl->next == NULL) { return ngx_write_file(file, cl->hunk->pos, - cl->hunk->last - cl->hunk->pos, offset); + (size_t) (cl->hunk->last - cl->hunk->pos), + offset); } prev = NULL; |