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

Pass last_level by value #529

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Pass last_level by value #529

merged 1 commit into from
Mar 6, 2023

Conversation

elshize
Copy link
Member

@elshize elshize commented Mar 4, 2023

In network BP algorithm, last_level was passed by value to one lambda, but by reference in the inner lambda, which meant it was dropped before it was used. Passing it by value both times fixes the issue.

Fixes #525

In network BP algorithm, `last_level` was passed by value to one lambda,
but by reference in the inner lambda, which meant it was dropped before
it was used. Passing it by value both times fixes the issue.

Fixes #525
@elshize elshize self-assigned this Mar 4, 2023
@elshize elshize requested review from amallia and JMMackenzie March 4, 2023 14:05
@elshize elshize merged commit 9a21e75 into master Mar 6, 2023
@elshize elshize deleted the fix-asan-bp-error branch March 6, 2023 01:40
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 this pull request may close these issues.

Address sanitizer error in recursive graph bisection test
2 participants