Skip to content

Fix bug: index error in checkNeighbours - #2302

Closed
schneider007 wants to merge 1 commit into
AcademySoftwareFoundation:masterfrom
schneider007:master
Closed

Fix bug: index error in checkNeighbours#2302
schneider007 wants to merge 1 commit into
AcademySoftwareFoundation:masterfrom
schneider007:master

Conversation

@schneider007

Copy link
Copy Markdown

As shown in the title

@schneider007
schneider007 requested a review from kmuseth as a code owner August 27, 2026 11:19
@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 27, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: schneider007 / name: schneider007 (80cf445)

@schneider007

Copy link
Copy Markdown
Author

/bot add-label bug-fix

@kmuseth kmuseth 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.

wow - this looks like a legit bug fix! Fascinating that it has been present in code that has been used for many years in production

One request for change: Please add a change note in pendingchanges/openvdb_tools.txt

if (mask[0] && Compare::check(data[pos + NodeT::DIM * NodeT::DIM])) return true;
// i+1, j, k-1
if (mask[6] && Compare::check(data[pos + NodeT::DIM * NodeT::DIM])) return true;
if (mask[6] && Compare::check(data[pos + NodeT::DIM * NodeT::DIM - 1])) return true;

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.

great catch!

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.

please resolve the DCO issue - otherwise I'll have to create a PR with your fix

@kmuseth

kmuseth commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

@schneider007 - I'm happy to resolve the DCO issue by creating a new PR with your fix and the change notes. I can also credit the fix to you (in the change notes) but to do so I need your full name.

@schneider007

Copy link
Copy Markdown
Author

My name is hexuejun.

@kmuseth

kmuseth commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This PR is now replace by #2306

@kmuseth kmuseth closed this Aug 28, 2026
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.

2 participants