--- parser3/src/include/pa_stack.h 2012/03/16 09:24:10 1.27 +++ parser3/src/include/pa_stack.h 2019/12/05 22:21:16 1.30 @@ -1,14 +1,14 @@ /** @file Parser: stack class decl. - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STACK_H #define PA_STACK_H -#define IDENT_PA_STACK_H "$Id: pa_stack.h,v 1.27 2012/03/16 09:24:10 moko Exp $" +#define IDENT_PA_STACK_H "$Id: pa_stack.h,v 1.30 2019/12/05 22:21:16 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: