From 22b8ca72b8934923ad69431e2e803af47bb95109 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 1 Sep 2015 00:08:49 +0100 Subject: [PATCH] Fix wrong type for tier in python bindings --- bindings/python/src/torrent_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/torrent_info.cpp b/bindings/python/src/torrent_info.cpp index 4a16641a8..91a2868ad 100644 --- a/bindings/python/src/torrent_info.cpp +++ b/bindings/python/src/torrent_info.cpp @@ -118,8 +118,8 @@ namespace return result; } - bool get_tier(announce_entry const& ae) { return ae.tier; } - void set_tier(announce_entry& ae, bool v) { ae.tier = v; } + int get_tier(announce_entry const& ae) { return ae.tier; } + void set_tier(announce_entry& ae, int v) { ae.tier = v; } bool get_fail_limit(announce_entry const& ae) { return ae.fail_limit; } void set_fail_limit(announce_entry& ae, int l) { ae.fail_limit = l; } bool get_fails(announce_entry const& ae) { return ae.fails; }