From e2589d5739e2971f56d3540da8a0201bf43d6cab Mon Sep 17 00:00:00 2001 From: Enric Tejedor Saavedra <enric.tejedor.saavedra@cern.ch> Date: Thu, 24 Jan 2019 15:19:19 +0100 Subject: [PATCH] [Exp PyROOT] Adapt to new interface of cppyy The new interface in Converters deals with multi-dimensional arrays. --- bindings/pyroot_experimental/PyROOT/src/TTreePyz.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/pyroot_experimental/PyROOT/src/TTreePyz.cxx b/bindings/pyroot_experimental/PyROOT/src/TTreePyz.cxx index 3417c75c3e1..93175a79687 100644 --- a/bindings/pyroot_experimental/PyROOT/src/TTreePyz.cxx +++ b/bindings/pyroot_experimental/PyROOT/src/TTreePyz.cxx @@ -88,8 +88,9 @@ static PyObject *WrapLeaf(TLeaf *leaf) { if (1 < leaf->GetLenStatic() || leaf->GetLeafCount()) { // array types + long dims[] = { 1, leaf->GetNdata() }; // first entry is the number of dims std::string typeName = leaf->GetTypeName(); - Converter *pcnv = CreateConverter(typeName + '*', leaf->GetNdata()); + Converter *pcnv = CreateConverter(typeName + '*', dims); void *address = 0; if (leaf->GetBranch()) -- GitLab