openbsd-ports/net/rtorrent/patches/patch-src_command_scheduler_cc
2012-07-15 10:20:07 +00:00

13 lines
643 B
Plaintext

$OpenBSD: patch-src_command_scheduler_cc,v 1.1 2012/07/15 10:20:07 dcoppa Exp $
--- src/command_scheduler.cc.orig Fri Jul 13 13:48:30 2012
+++ src/command_scheduler.cc Fri Jul 13 13:48:44 2012
@@ -66,7 +66,7 @@ cmd_scheduler_simple_removed(core::Download* download)
core::View* viewActive = *control->view_manager()->find("active");
int64_t maxActive = rpc::call_command("scheduler.max_active", torrent::Object()).as_value();
- if (viewActive->size_visible() >= maxActive)
+ if ((int64_t)viewActive->size_visible() >= maxActive)
return torrent::Object();
// The 'started' view contains all the views we may choose amongst.