Skip to content
Snippets Groups Projects
Commit e2589d57 authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra Committed by Danilo Piparo
Browse files

[Exp PyROOT] Adapt to new interface of cppyy

The new interface in Converters deals with multi-dimensional arrays.
parent 9747b858
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,9 @@ static PyObject *WrapLeaf(TLeaf *leaf) ...@@ -88,8 +88,9 @@ static PyObject *WrapLeaf(TLeaf *leaf)
{ {
if (1 < leaf->GetLenStatic() || leaf->GetLeafCount()) { if (1 < leaf->GetLenStatic() || leaf->GetLeafCount()) {
// array types // array types
long dims[] = { 1, leaf->GetNdata() }; // first entry is the number of dims
std::string typeName = leaf->GetTypeName(); std::string typeName = leaf->GetTypeName();
Converter *pcnv = CreateConverter(typeName + '*', leaf->GetNdata()); Converter *pcnv = CreateConverter(typeName + '*', dims);
void *address = 0; void *address = 0;
if (leaf->GetBranch()) if (leaf->GetBranch())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment