fix buildvalue segfault

This commit is contained in:
Marcos Pinto 2007-07-11 04:34:15 +00:00
parent 2482aba77b
commit 2efe45896b
1 changed files with 1 additions and 1 deletions

View File

@ -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