diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-28 14:54:36 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-28 14:54:36 +0200 |
| commit | 9d88586c37e9a5702949f90fc589ef941d57f661 (patch) | |
| tree | eea061462df3613698776bd933659bf987dbbb37 /python | |
| parent | ddf91759e3fabee1e0d61372247c4256758c387c (diff) | |
| download | python-apt-9d88586c37e9a5702949f90fc589ef941d57f661.tar.gz | |
* python/string.cc:
- fix overflow in SizeToStr()
Diffstat (limited to 'python')
| -rw-r--r-- | python/string.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/string.cc b/python/string.cc index d0926da5..1fa5a901 100644 --- a/python/string.cc +++ b/python/string.cc @@ -55,7 +55,7 @@ PyObject *StrSizeToStr(PyObject *Self,PyObject *Args) if (PyInt_Check(Obj)) return CppPyString(SizeToStr(PyInt_AsLong(Obj))); if (PyLong_Check(Obj)) - return CppPyString(SizeToStr(PyLong_AsLong(Obj))); + return CppPyString(SizeToStr(PyLong_AsDouble(Obj))); if (PyFloat_Check(Obj)) return CppPyString(SizeToStr(PyFloat_AsDouble(Obj))); |
