Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
b8002a0e
Commit
b8002a0e
authored
Dec 11, 2009
by
Thorvald Natvig
Committed by
Jean-Marc Valin
Dec 11, 2009
Browse files
Varlength arrays fix for C89
parent
e14fe904
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/plc.c
View file @
b8002a0e
...
...
@@ -106,7 +106,9 @@ void _celt_autocorr(
{
float
d
;
int
i
;
float
xx
[
n
];
VARDECL
(
float
,
xx
);
SAVE_STACK
;
ALLOC
(
xx
,
n
,
float
);
for
(
i
=
0
;
i
<
n
;
i
++
)
xx
[
i
]
=
x
[
i
];
for
(
i
=
0
;
i
<
overlap
;
i
++
)
...
...
@@ -122,4 +124,5 @@ void _celt_autocorr(
lag
--
;
}
ac
[
0
]
+=
10
;
RESTORE_STACK
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment