]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Build error: /dev/poll signed/unsigned comparison in comm_flush_updates
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 17 Oct 2010 10:03:24 +0000 (04:03 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 17 Oct 2010 10:03:24 +0000 (04:03 -0600)
src/comm_devpoll.cc

index 953386c36b76c4e66f992239802e983380fdd70e..25cb3630b6fff8bb4352e6c51ea038b5e9ba8591 100644 (file)
@@ -135,7 +135,7 @@ comm_flush_updates(void)
             (devpoll_update.cur + 1) * sizeof(struct pollfd) /* bytes to process */
         );
     assert(i > 0);
-    assert(i == sizeof(struct pollfd) * (devpoll_update.cur + 1));
+    assert(static_cast<size_t>(i) == (sizeof(struct pollfd) * (devpoll_update.cur + 1)));
     devpoll_update.cur = -1; /* reset size of array, no elements remain */
 }