From 6b21dd3cb5f7e670820f4abf50d3651d318832cd Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Sat, 3 Apr 2021 14:39:55 +0200 Subject: [PATCH] fixed bad cast --- include/gp/pointers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gp/pointers.hpp b/include/gp/pointers.hpp index 95b5584..1f7bba0 100644 --- a/include/gp/pointers.hpp +++ b/include/gp/pointers.hpp @@ -72,7 +72,7 @@ namespace gp { shared_ptr(T* _data, gp::allocator& _owner) : data(_data) - , refcounter((std::atomic_int)owner.allocate(sizeof(std::atomic_int))) + , refcounter((std::atomic_int*)owner.allocate(sizeof(std::atomic_int))) , owner(_owner) { refcounter->store(1);