diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-06-09 23:23:43 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-06-09 23:23:43 +0200 |
commit | 63a492f51f9744420e9825e0e3ac85b5809bc62c (patch) | |
tree | c5eb2fc53c8154bd2cd6b27a34e9077478cc7b4b /crawl-ref/source/package.cc | |
parent | 62783aa6b3ef1253b7586d0d0104a10647043351 (diff) | |
download | crawl-ref-63a492f51f9744420e9825e0e3ac85b5809bc62c.tar.gz crawl-ref-63a492f51f9744420e9825e0e3ac85b5809bc62c.zip |
Fix a warning on certain architectures.
Diffstat (limited to 'crawl-ref/source/package.cc')
-rw-r--r-- | crawl-ref/source/package.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/package.cc b/crawl-ref/source/package.cc index 357ea68d97..3e6200dc8a 100644 --- a/crawl-ref/source/package.cc +++ b/crawl-ref/source/package.cc @@ -712,7 +712,7 @@ void chunk_writer::raw_write(const void *data, len_t len) } pkg->seek(cur_block + block_len + sizeof(block_header)); - if (::write(pkg->fd, data, space) != space) + if (::write(pkg->fd, data, space) != (ssize_t)space) sysfail("write error while saving"); data = (char*)data + space; block_len += space; |