mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-26 04:59:59 +00:00
Add more const qualifiers on static arrays
So we know they are just tables, get protected from overflows, and get shared between processes
This commit is contained in:
@@ -428,7 +428,7 @@ static bool StressCondition(Translator *tr, PHONEME_LIST *plist, int condition,
|
||||
{
|
||||
int stress_level;
|
||||
PHONEME_LIST *pl;
|
||||
static int condition_level[4] = { 1, 2, 4, 15 };
|
||||
static const int condition_level[4] = { 1, 2, 4, 15 };
|
||||
|
||||
if (phoneme_tab[plist[0].phcode]->type == phVOWEL)
|
||||
pl = plist;
|
||||
|
||||
Reference in New Issue
Block a user