Skip to content

Commit d898311

Browse files
committed
Implemented change from #81
1 parent 96b70f2 commit d898311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/libmorton/morton3D.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ namespace libmorton {
253253
inline void m3D_d_for(const morton m, coord& x, coord& y, coord& z) {
254254
x = 0; y = 0; z = 0;
255255
unsigned int checkbits = (sizeof(morton) * 8) / 3;
256-
for (unsigned int i = 0; i <= checkbits; ++i) {
256+
for (unsigned int i = 0; i < checkbits; ++i) {
257257
morton selector = 1;
258258
unsigned int shift_selector = 3 * i;
259259
unsigned int shiftback = 2 * i;

0 commit comments

Comments
 (0)