]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix "int to double" compiler warnings in IpcIoClaimMemoryNeedsRr::run().
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Fri, 28 Oct 2011 01:07:48 +0000 (19:07 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 28 Oct 2011 01:07:48 +0000 (19:07 -0600)
src/DiskIO/IpcIo/IpcIoFile.cc

index 3087372251e1697404b447bab36f7579c6afee30..8c0a3ecef44ef902bbff5c79cf2bf9906fe5daaf 100644 (file)
@@ -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<int>(itemsCount * 1.1));
 }