mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 07:21:49 +00:00
Handle PyLong return values in LLDBSwigPython_CalculateNumChildren.
Summary: Also, change its return type to size_t to match the return types of its callers. With this change, std::vector and std::list data formatter tests pass on Linux (when using libstdc++) with clang as well as with gcc. These tests have also been enabled in this patch. Test Plan: dotest.py -p <TestDataFormatterStdVector|TestDataFormatterStdList> Reviewers: vharron, clayborg Reviewed By: clayborg Subscribers: zturner, lldb-commits Differential Revision: http://reviews.llvm.org/D8337 llvm-svn: 232399
This commit is contained in:
1 parent
11ce908e4c
commit
870602dd3c
7 files changed
+34
-16
No files matched your search
@@ -2082,7 +2082,7 @@ ScriptInterpreterPython::CalculateNumChildren (const lldb::ScriptInterpreterObje
|
||||
if (!g_swig_calc_children)
|
||||
return 0;
|
||||
|
||||
uint32_t ret_val = 0;
|
||||
size_t ret_val = 0;
|
||||
|
||||
{
|
||||
Locker py_lock(this, Locker::AcquireLock | Locker::InitSession | Locker::NoSTDIN);
|
||||
|
||||
Reference in new issue
Block a user