From 490788e1cb638a0b38ca927932ff224de57e4a51 Mon Sep 17 00:00:00 2001 From: Ken Museth Date: Wed, 25 Oct 2023 12:43:55 -0700 Subject: [PATCH] fixed bug in BBox::ITerator::end() Signed-off-by: Ken Museth --- nanovdb/nanovdb/NanoVDB.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanovdb/nanovdb/NanoVDB.h b/nanovdb/nanovdb/NanoVDB.h index 4d1bd07781..87f387b6cb 100644 --- a/nanovdb/nanovdb/NanoVDB.h +++ b/nanovdb/nanovdb/NanoVDB.h @@ -2399,7 +2399,7 @@ struct BBox : public BaseBBox __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()) {