Skip to content

Commit

Permalink
size_t size check
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Apr 15, 2024
1 parent a300b96 commit 858a9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/small_gicp/ann/incremental_voxelmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ struct IncrementalVoxelMap {
inline size_t point_id(const size_t i) const { return i & ((1ul << point_id_bits) - 1); } ///< Extract the voxel ID from an index

public:
static_assert(sizeof(size_t) == 8, "size_t must be 64-bit");
static_assert(sizeof(size_t) < 8, "size_t must be larger than 64-bit");
static constexpr int point_id_bits = 32; ///< Use the first 32 bits for point id
static constexpr int voxel_id_bits = 64 - point_id_bits; ///< Use the remaining bits for voxel id
const double inv_leaf_size; ///< Inverse of the voxel size
Expand Down

0 comments on commit 858a9f5

Please sign in to comment.