Skip to content

Commit

Permalink
Merge pull request #82 from Forceflow/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Forceflow authored May 24, 2023
2 parents b4766c8 + ec77dc0 commit 7923faa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Libmorton v0.2.11
# Libmorton v0.2.12
[![CMake](https://github.com/Forceflow/libmorton/actions/workflows/cmake.yml/badge.svg)](https://github.com/Forceflow/libmorton/actions/workflows/cmake.yml) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/forceflow)

* Libmorton is a **C++ header-only library** with methods to efficiently encode/decode 64, 32 and 16-bit Morton codes and coordinates, in 2D and 3D. *Morton order* is also known as *Z-order* or *[the Z-order curve](https://en.wikipedia.org/wiki/Z-order_curve)*.
Expand Down
2 changes: 1 addition & 1 deletion include/libmorton/morton3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ namespace libmorton {
inline void m3D_d_for(const morton m, coord& x, coord& y, coord& z) {
x = 0; y = 0; z = 0;
unsigned int checkbits = (sizeof(morton) * 8) / 3;
for (unsigned int i = 0; i <= checkbits; ++i) {
for (unsigned int i = 0; i < checkbits; ++i) {
morton selector = 1;
unsigned int shift_selector = 3 * i;
unsigned int shiftback = 2 * i;
Expand Down

0 comments on commit 7923faa

Please sign in to comment.