1 parent d9501dd commit 005014bCopy full SHA for 005014b
1 file changed
include/REL/Relocation.h
@@ -939,7 +939,7 @@ namespace REL
939
private:
940
void grow()
941
{
942
- const std::size_t capacity = _capacity > 0 ? _capacity * 2 : 1;
+ const std::size_t capacity = (_capacity > 0) ? (_capacity * 2) : (4096 / sizeof(reg_t));
943
auto buffer = std::make_unique<reg_t[]>(capacity);
944
std::memcpy(buffer.get(), _buffer.get(), _capacity * sizeof(reg_t));
945
_buffer.swap(buffer);
@@ -964,7 +964,7 @@ namespace REL
964
class StaticID
965
966
public:
967
- operator std::uint64_t() const noexcept { return _cache._address; }
+ operator std::uintptr_t() const noexcept { return _cache._address; }
968
969
970
struct Cache
0 commit comments