[Lldb-commits] [lldb] r246885 - Convert "long" input to "long long" in typemap for lldb::tid_t.
Siva Chandra via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 4 15:26:52 PDT 2015
Author: sivachandra
Date: Fri Sep 4 17:26:52 2015
New Revision: 246885
URL: http://llvm.org/viewvc/llvm-project?rev=246885&view=rev
Log:
Convert "long" input to "long long" in typemap for lldb::tid_t.
Summary: lldb::tid_t is 64 bit, but "long" need not always be 64 bit.
Reviewers: chying, clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D12650
Modified:
lldb/trunk/scripts/Python/python-typemaps.swig
Modified: lldb/trunk/scripts/Python/python-typemaps.swig
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/python-typemaps.swig?rev=246885&r1=246884&r2=246885&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/python-typemaps.swig (original)
+++ lldb/trunk/scripts/Python/python-typemaps.swig Fri Sep 4 17:26:52 2015
@@ -29,7 +29,7 @@
if (PyInt_Check($input))
$1 = PyInt_AsLong($input);
else if (PyLong_Check($input))
- $1 = PyLong_AsLong($input);
+ $1 = PyLong_AsLongLong($input);
else
{
PyErr_SetString(PyExc_ValueError, "Expecting an integer");
More information about the lldb-commits
mailing list