From 35c044475bda0413aafceaa5cb75a4152bcd32bb Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 2 Apr 2024 09:47:43 +0800 Subject: [PATCH] fixed two bug. --- inc/hgl/type/DataStackPool.h | 2 +- src/Type/DataChain.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/hgl/type/DataStackPool.h b/inc/hgl/type/DataStackPool.h index b7e10a2..ffff3ea 100644 --- a/inc/hgl/type/DataStackPool.h +++ b/inc/hgl/type/DataStackPool.h @@ -36,7 +36,7 @@ namespace hgl end=data_array+max_count; - series.Init(max_count); + return series.Init(max_count); } ~DataStackPool() diff --git a/src/Type/DataChain.cpp b/src/Type/DataChain.cpp index 0e4fe14..549c2a2 100644 --- a/src/Type/DataChain.cpp +++ b/src/Type/DataChain.cpp @@ -26,6 +26,8 @@ namespace hgl start->next=nullptr; start->start=0; start->count=max_count; + + return(true); } DataChain::UserNode *DataChain::Acquire(const int acquire_count)