--- parser3/src/include/pa_stack.h 2015/10/26 01:21:56 1.28 +++ parser3/src/include/pa_stack.h 2023/09/26 20:49:07 1.32 @@ -1,14 +1,14 @@ /** @file Parser: stack class decl. - Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_STACK_H #define PA_STACK_H -#define IDENT_PA_STACK_H "$Id: pa_stack.h,v 1.28 2015/10/26 01:21:56 moko Exp $" +#define IDENT_PA_STACK_H "$Id: pa_stack.h,v 1.32 2023/09/26 20:49:07 moko Exp $" #include "pa_array.h" @@ -39,7 +39,7 @@ public: /// call this prior to collecting garbage [in unused part of stack there may be pointers(unused)] void wipe_unused() { if(size_t above_top_size=this->fallocated-this->fused) - memset(&this->felements[this->fused], 0, above_top_size*sizeof(T)); + memset((void *)&this->felements[this->fused], 0, above_top_size*sizeof(T)); } protected: