mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-11 00:26:08 +00:00
Fix running the tests with -fsanitize=address.
This commit is contained in:
+3
-3
@@ -2664,7 +2664,7 @@ static const struct case_conversion_entry case_conversion_data[] =
|
||||
codepoint_t ucd_toupper(codepoint_t c)
|
||||
{
|
||||
int begin = 0;
|
||||
int end = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
int end = (sizeof(case_conversion_data)/sizeof(case_conversion_data[0])) - 1;
|
||||
while (begin <= end)
|
||||
{
|
||||
int pos = (begin + end) / 2;
|
||||
@@ -2682,7 +2682,7 @@ codepoint_t ucd_toupper(codepoint_t c)
|
||||
codepoint_t ucd_tolower(codepoint_t c)
|
||||
{
|
||||
int begin = 0;
|
||||
int end = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
int end = (sizeof(case_conversion_data)/sizeof(case_conversion_data[0])) - 1;
|
||||
while (begin <= end)
|
||||
{
|
||||
int pos = (begin + end) / 2;
|
||||
@@ -2700,7 +2700,7 @@ codepoint_t ucd_tolower(codepoint_t c)
|
||||
codepoint_t ucd_totitle(codepoint_t c)
|
||||
{
|
||||
int begin = 0;
|
||||
int end = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
|
||||
int end = (sizeof(case_conversion_data)/sizeof(case_conversion_data[0])) - 1;
|
||||
while (begin <= end)
|
||||
{
|
||||
int pos = (begin + end) / 2;
|
||||
|
||||
Reference in New Issue
Block a user