From: hno <> Date: Mon, 27 Jan 2003 15:04:01 +0000 (+0000) Subject: Typecast sbrk pointer arithmetics into (int) when printing as KB. X-Git-Tag: SQUID_3_0_PRE1~431 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2034eb9a420152f42fdc921b9ab94651e2c50a1b;p=thirdparty%2Fsquid.git Typecast sbrk pointer arithmetics into (int) when printing as KB. --- diff --git a/src/stat.cc b/src/stat.cc index fe50c31db9..22a584dbaa 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.367 2003/01/23 00:59:44 robertc Exp $ + * $Id: stat.cc,v 1.368 2003/01/27 08:04:01 hno Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -479,7 +479,7 @@ info_get(StoreEntry * sentry) statCPUUsage(60)); #if HAVE_SBRK storeAppendPrintf(sentry, "\tProcess Data Segment Size via sbrk(): %d KB\n", - ((char *)sbrk(0) - (char *)sbrk_start) >> 10); + (int) (((char *) sbrk(0) - (char *) sbrk_start) >> 10)); #endif storeAppendPrintf(sentry, "\tMaximum Resident Size: %d KB\n", rusage_maxrss(&rusage));