mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-06 18:22:32 +00:00
* Fixed a type cast.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1248 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -244,7 +244,7 @@ cg_get_index(const torrent::Object& raw_args) {
|
||||
size_t index = 0;
|
||||
|
||||
if (arg.is_string()) {
|
||||
if (!rpc::parse_whole_value_nothrow(arg.as_string().c_str(), &index))
|
||||
if (!rpc::parse_whole_value_nothrow(arg.as_string().c_str(), (int64_t*)&index))
|
||||
return torrent::resource_manager()->group_index_of(arg.as_string());
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user