From 106fb6de1cf3523c10197dc8e02ec44e94523f18 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 1 May 2007 14:47:53 +0000 Subject: Type safety, cast cleanups, etc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1401 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/hiscores.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/hiscores.cc') 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(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(getuid()); #else uid = 0; #endif -- cgit v1.2.3-54-g00ecf