Skip to content
Snippets Groups Projects
Commit ee41f70c authored by Philippe Canal's avatar Philippe Canal
Browse files

Match the actual expectation of a variable size in a leaflist

parent 35dcb954
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,8 @@ TTree* MakeTree() {
double x[3]{};
float z = 0.;
struct {
unsigned int ny;
int* y = nullptr;
unsigned int ny = 100;
int y[100];
} yData;
std::string str;
Double32_t Double32 = 12.;
......@@ -31,7 +31,6 @@ TTree* MakeTree() {
x[1] = 42.;
yData.ny = 42;
yData.y = new int[42]{};
yData.y[0] = 17;
str = "first";
tree->Fill();
......@@ -48,8 +47,6 @@ TTree* MakeTree() {
tree->Fill();
}
delete [] yData.y;
tree->ResetBranchAddresses();
return tree;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment