Skip to content

Listing 8.13 - Incorrect Implementation #45

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ITHelpDec
Copy link

Most of this has been addressed in an earlier issue, so thank you to @dragon-dreamer and @xxrlzzz.

As it stands, an incomplete join_threads will result in a runtime error, and functionally we need to ensure an else statement is included should update_source not return true.

Our block_start iterator is also unused, so maybe this was a throwback to earlier examples where block_start and block_end were passed recursively?

Good catch, guys / dolls.

ITHelpDec added 3 commits July 4, 2023 12:48
  * libc++abi: terminating, otherwise
  * without this inverted else statement, the code produces incorrect partial sums
  * block_start is not used in algorithm
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.

1 participant