Skip to content

Fix variable shadowing bug in leccalc aggreports#406

Merged
sambles merged 2 commits into
developfrom
fix/405-variable-shadowing-leccalc
Jun 17, 2026
Merged

Fix variable shadowing bug in leccalc aggreports#406
sambles merged 2 commits into
developfrom
fix/405-variable-shadowing-leccalc

Conversation

@benhayes21

Copy link
Copy Markdown
Contributor

Fix variable shadowing bug in leccalc aggreports

  • Fixed a variable shadowing bug in leccalc/aggreports.cpp where fileIDs was redeclared inside an if block, shadowing the outer variable and leaving it empty when passed to WritePerSampleExceedanceProbabilityTable

#405

Remove inner redeclaration of fileIDs that shadowed the outer variable,
causing it to remain empty after the if block.

Fixes #405

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@SkylordA SkylordA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you want to fix the workflow file issue here as well for macos since it's failing the build. I think it's because macos-13 isn't supported anymore on git

@benhayes21
benhayes21 force-pushed the fix/405-variable-shadowing-leccalc branch from d4646c0 to a2345f7 Compare June 16, 2026 20:33
@sambles
sambles merged commit 5aa3904 into develop Jun 17, 2026
2 checks passed
@sambles
sambles deleted the fix/405-variable-shadowing-leccalc branch June 17, 2026 08:48
@sambles sambles mentioned this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants