diff --git a/include/gp/math/integer_math.hpp b/include/gp/math/integer_math.hpp index ea3e979..746dd01 100644 --- a/include/gp/math/integer_math.hpp +++ b/include/gp/math/integer_math.hpp @@ -49,7 +49,7 @@ namespace gp { v |= v >> 16; v |= v >> 32; - return MultiplyDeBruijnBitPosition[(uint64_t)(v * 0x03f6eaf2cd271461) >> 58]; + return MultiplyDeBruijnBitPosition[(uint64_t)(v * 0x03f6eaf2cd271461ULL) >> 58]; } static_assert(log2(7) == 2, "bad log2"); diff --git a/include/gp/math/q_math.hpp b/include/gp/math/q_math.hpp index e69de29..7b9637e 100644 --- a/include/gp/math/q_math.hpp +++ b/include/gp/math/q_math.hpp @@ -0,0 +1 @@ +#pragma once \ No newline at end of file diff --git a/include/gp/pointers.hpp b/include/gp/pointers.hpp index 73dd08a..35e9ba9 100644 --- a/include/gp/pointers.hpp +++ b/include/gp/pointers.hpp @@ -10,9 +10,9 @@ template class unique_ptr { T* data; - gp::allocator const& owner; + gp::allocator& owner; - unique_ptr(T* _data, gp::allocator const& _owner) + unique_ptr(T* _data, gp::allocator& _owner) : data(data) , owner(_owner) {} @@ -64,9 +64,9 @@ template class shared_ptr { T* data; std::atomic_int* refcounter; - gp::allocator const& owner; + gp::allocator& owner; - shared_ptr(T* _data, gp::allocator const& _owner) + shared_ptr(T* _data, gp::allocator& _owner) : data(data) , owner(_owner) {}