瀏覽代碼

fixed bad cast

channel
Ludovic 'Archivist' Lagouardette 3 年之前
父節點
當前提交
6b21dd3cb5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      include/gp/pointers.hpp

+ 1
- 1
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_into">*)owner.allocate(sizeof(std::atomic_int)))
, owner(_owner)
{
refcounter->store(1);

Loading…
取消
儲存