summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
diff options
context:
space:
mode:
authorHaran Pilpel <haranp@users.sourceforge.net>2010-01-28 08:51:05 +0200
committerHaran Pilpel <haranp@users.sourceforge.net>2010-01-29 16:43:46 +0200
commit5f6162a4a0661e62e2426960d4cb5380a0b749d8 (patch)
tree7a662e7f90c4744bb6ba7bf0559bc934ff196fa4 /crawl-ref/source/dlua.cc
parent721a4e7bc5152fae1ce7c16ec7b6c25283defa18 (diff)
downloadcrawl-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/dlua.cc')
-rw-r--r--crawl-ref/source/dlua.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dlua.cc b/crawl-ref/source/dlua.cc
index 975847bbd6..b2590f2b86 100644
--- a/crawl-ref/source/dlua.cc
+++ b/crawl-ref/source/dlua.cc
@@ -17,7 +17,7 @@ static int dlua_compiled_chunk_writer(lua_State *ls, const void *p,
size_t sz, void *ud)
{
std::ostringstream &out = *static_cast<std::ostringstream*>(ud);
- out.write((const char *) p, sz);
+ out.write(static_cast<const char *>(p), sz);
return (0);
}