Skip to content

Commit

Permalink
fixed bug in BBox::ITerator::end()
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Museth <[email protected]>
  • Loading branch information
kmuseth committed Oct 25, 2023
1 parent b9ab546 commit 490788e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanovdb/nanovdb/NanoVDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@ struct BBox<CoordT, false> : public BaseBBox<CoordT>
__hostdev__ const CoordT& operator*() const { return mPos; }
}; // Iterator
__hostdev__ Iterator begin() const { return Iterator{*this}; }
__hostdev__ Iterator end() const { return Iterator{*this, this->max().offsetBy(1)}; }
__hostdev__ Iterator end() const { return Iterator{*this, this->max().offsetBy(1,0,0)}; }
__hostdev__ BBox()
: BaseT(CoordT::max(), CoordT::min())
{
Expand Down

0 comments on commit 490788e

Please sign in to comment.