From: Alex Rousskov Date: Wed, 13 Apr 2011 19:28:58 +0000 (-0600) Subject: Use size_t for cumulative shared pages limits instead of uint64_t X-Git-Tag: take06~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3042d12d7b616c640a88685f3ae34b99cf822b89;p=thirdparty%2Fsquid.git Use size_t for cumulative shared pages limits instead of uint64_t because cache_mem (Config.memMaxSize) is size_t. --- diff --git a/src/ipc/mem/Pages.h b/src/ipc/mem/Pages.h index bf07d99584..bbd2023e4b 100644 --- a/src/ipc/mem/Pages.h +++ b/src/ipc/mem/Pages.h @@ -34,13 +34,13 @@ void *PagePointer(const PageId &page); /* Limits and statistics */ /// the total number of shared memory bytes that can be in use at any time -uint64_t Limit(); +size_t Limit(); /// approximate total number of shared memory bytes used now -uint64_t Level(); +size_t Level(); /// approximate total number of shared memory bytes we can allocate now -inline uint64_t Available() { return Limit() - Level(); } +inline size_t Available() { return Limit() - Level(); } /// returns page size in bytes; all pages are assumed to be the same size size_t PageSize();