Commit 0472028c authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

window: fix hidden variable scope

parent a519a8f8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment