1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

window: fix hidden variable scope

This commit is contained in:
Steffen Vogel 2019-04-17 18:07:50 +02:00
parent a02b3834b4
commit 6e304c41e9

View file

@ -44,16 +44,15 @@ protected:
size_type pos;
public:
Window(size_type steps = 0, T i = 0) :
Window(size_type s = 0, T i = 0) :
init(i)
{
size_type len = LOG2_CEIL(steps);
size_type len = LOG2_CEIL(s);
/* Allocate memory for ciruclar history buffer */
data = std::vector<T>(len, i);
steps = steps;
steps = s;
pos = len;
mask = len - 1;
}