* Fixed a type cast.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1248 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2011-07-20 11:37:44 +00:00
parent fa8ef65cd7
commit 86a9c1051b
+1 -1
View File
@@ -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 {