fix buildvalue segfault
This commit is contained in:
parent
2482aba77b
commit
2efe45896b
|
@ -957,7 +957,7 @@ static PyObject *torrent_get_file_info(PyObject *self, PyObject *args)
|
||||||
file_entry const &currFile = (*i);
|
file_entry const &currFile = (*i);
|
||||||
|
|
||||||
file_info = Py_BuildValue(
|
file_info = Py_BuildValue(
|
||||||
"{s:s,s:d,s:d,s:f}",
|
"{s:s,s:d,s:f}",
|
||||||
"path", currFile.path.string().c_str(),
|
"path", currFile.path.string().c_str(),
|
||||||
"size", double(currFile.size),
|
"size", double(currFile.size),
|
||||||
"progress", progresses[i - start]*100.0
|
"progress", progresses[i - start]*100.0
|
||||||
|
|
Loading…
Reference in New Issue