diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-01 14:47:53 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-01 14:47:53 +0000 |
commit | 106fb6de1cf3523c10197dc8e02ec44e94523f18 (patch) | |
tree | be6eba2338470be1467fc89131f20d80878a4906 /crawl-ref/source/hiscores.cc | |
parent | 83043ea070b1f45c5cad9c7ad1f1844a01079809 (diff) | |
download | crawl-ref-106fb6de1cf3523c10197dc8e02ec44e94523f18.tar.gz crawl-ref-106fb6de1cf3523c10197dc8e02ec44e94523f18.zip |
Type safety, cast cleanups, etc.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1401 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index 47b1f9d68b..db78f5d592 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -414,7 +414,8 @@ static void hs_nextstring(const char *&inbuf, char *dest, size_t destsize) if (*inbuf == ':') inbuf++; - while (*inbuf && *inbuf != ':' && (p - dest) < (int) destsize - 1) + while (*inbuf && *inbuf != ':' && + (p - dest) < static_cast<int>(destsize) - 1) *p++ = *inbuf++; // If we ran out of buffer, discard the rest of the field. @@ -1051,7 +1052,7 @@ void scorefile_entry::init() name = you.your_name; #ifdef MULTIUSER - uid = (int) getuid(); + uid = static_cast<int>(getuid()); #else uid = 0; #endif |