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:
parent
a02b3834b4
commit
6e304c41e9
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue