From: Dmitry Kurochkin Date: Fri, 28 Oct 2011 01:07:48 +0000 (-0600) Subject: Fix "int to double" compiler warnings in IpcIoClaimMemoryNeedsRr::run(). X-Git-Tag: BumpSslServerFirst.take01~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29a9ff4e2a97a1a6c207a3a1fa218d636fbd4bf8;p=thirdparty%2Fsquid.git Fix "int to double" compiler warnings in IpcIoClaimMemoryNeedsRr::run(). --- diff --git a/src/DiskIO/IpcIo/IpcIoFile.cc b/src/DiskIO/IpcIo/IpcIoFile.cc index 3087372251..8c0a3ecef4 100644 --- a/src/DiskIO/IpcIo/IpcIoFile.cc +++ b/src/DiskIO/IpcIo/IpcIoFile.cc @@ -871,7 +871,8 @@ IpcIoClaimMemoryNeedsRr::run(const RunnerRegistry &) // number of queue slots, we add a fudge factor to that to account // for corner cases where I/O pages are created before queue // limits are checked or destroyed long after the I/O is dequeued - Ipc::Mem::NotePageNeed(Ipc::Mem::PageId::ioPage, itemsCount * 1.1); + Ipc::Mem::NotePageNeed(Ipc::Mem::PageId::ioPage, + static_cast(itemsCount * 1.1)); }