diff options
author | Haran Pilpel <haranp@users.sourceforge.net> | 2010-01-28 08:51:05 +0200 |
---|---|---|
committer | Haran Pilpel <haranp@users.sourceforge.net> | 2010-01-29 16:43:46 +0200 |
commit | 5f6162a4a0661e62e2426960d4cb5380a0b749d8 (patch) | |
tree | 7a662e7f90c4744bb6ba7bf0559bc934ff196fa4 /crawl-ref/source/bitary.cc | |
parent | 721a4e7bc5152fae1ce7c16ec7b6c25283defa18 (diff) | |
download | crawl-ref-5f6162a4a0661e62e2426960d4cb5380a0b749d8.tar.gz crawl-ref-5f6162a4a0661e62e2426960d4cb5380a0b749d8.zip |
Nuke a whole lot of old-style casts, and remove some casts completely
(you don't need to cast an X* to a void* and you don't need to cast
arguments to math.h functions such as sqrt.)
Diffstat (limited to 'crawl-ref/source/bitary.cc')
-rw-r--r-- | crawl-ref/source/bitary.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/bitary.cc b/crawl-ref/source/bitary.cc index d822dcd327..52de022dc2 100644 --- a/crawl-ref/source/bitary.cc +++ b/crawl-ref/source/bitary.cc @@ -15,7 +15,7 @@ bit_array::bit_array(unsigned long s) : size(s) { - nwords = (int) ((size + LONGSIZE - 1) / LONGSIZE); + nwords = static_cast<int>((size + LONGSIZE - 1) / LONGSIZE); data = new unsigned long[nwords]; reset(); } |