Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type-specified SetBranchAddress #35

Closed
eugene274 opened this issue Nov 11, 2020 · 1 comment · Fixed by #36
Closed

Type-specified SetBranchAddress #35

eugene274 opened this issue Nov 11, 2020 · 1 comment · Fixed by #36

Comments

@eugene274
Copy link
Contributor

@lubynets inversigated issue with crash after t->GetEntry(0).

tree->SetbranchAddress() is sensitive to type of the pointer-to-pointer passed to it. It is actually a template method.
Here:

t->SetBranchAddress(branch_map_entry.first.c_str(), &branch_map_entry.second);

void** is passed, which causes crash.

@eugene274
Copy link
Contributor Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant