diff --git a/inc/hgl/TypeFunc.h b/inc/hgl/TypeFunc.h index ddc6ec9..6a87afa 100644 --- a/inc/hgl/TypeFunc.h +++ b/inc/hgl/TypeFunc.h @@ -375,6 +375,8 @@ namespace hgl template inline void hgl_set(T *data,const T value,const size_t count) { + if(!data||count<=0)return; + for(size_t i=0;i + inline void hgl_set(T *data,const T *src,const size_t count) + { + if(!data||!src||count<=0)return; + + for(size_t i=0;i