--- parser3/src/include/pa_stack.h 2009/04/30 04:39:06 1.26 +++ parser3/src/include/pa_stack.h 2020/12/15 17:10:32 1.31 @@ -1,14 +1,14 @@ /** @file Parser: stack class decl. - Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STACK_H #define PA_STACK_H -static const char * const IDENT_STACK_H="$Date: 2009/04/30 04:39:06 $"; +#define IDENT_PA_STACK_H "$Id: pa_stack.h,v 1.31 2020/12/15 17:10:32 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: