diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
commit | 8431ac369b2f12ac376798fb01748f52d327164a (patch) | |
tree | 383144a0a102038cf5fd1aaf780f9594ffb376f1 /src/datafiles.c | |
parent | 5950b11a0f4903cd07c0068a428f499dd64bdd2b (diff) |
Converted many C-style casts to C++-style casts.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1788 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/datafiles.c')
-rw-r--r-- | src/datafiles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datafiles.c b/src/datafiles.c index d14e47343..541ad9ca5 100644 --- a/src/datafiles.c +++ b/src/datafiles.c @@ -466,7 +466,7 @@ int read_ptr(void **ret, dbFILE * f) c = fgetc(f->fp); if (c == EOF) return -1; - *ret = (c ? (void *) 1 : (void *) 0); + *ret = (c ? reinterpret_cast<void *>(1) : reinterpret_cast<void *>(0)); return 0; } @@ -533,7 +533,7 @@ int write_string(const char *s, dbFILE * f) len = strlen(s); if (len > 65534) len = 65534; - if (write_int16((uint16) (len + 1), f) < 0) + if (write_int16(static_cast<uint16>(len + 1), f) < 0) return -1; if (len > 0 && fwrite(s, 1, len, f->fp) != len) return -1; |