Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Take comments into account
  • Loading branch information
catenacyber committed May 4, 2021
1 parent 24bfbcf commit 39e6a58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Expand Up @@ -222,7 +222,9 @@ endif

src_espeak_ng_LDADD = src/libespeak-ng.la ${PCAUDIOLIB_LIBS}
src_espeak_ng_SOURCES = src/espeak-ng.c
if HAVE_LIBFUZZER
nodist_EXTRA_src_espeak_ng_SOURCES = force-cxx-linking.cxx
endif

##### tests:

Expand Down
15 changes: 9 additions & 6 deletions src/ucd-tools/src/case.c
Expand Up @@ -2822,8 +2822,9 @@ 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]);
while (begin <= end)
int size = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
int end = size;
while (begin <= end && (begin + end) / 2 < size)
{
int pos = (begin + end) / 2;
const struct case_conversion_entry *item = (case_conversion_data + pos);
Expand All @@ -2840,8 +2841,9 @@ 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]);
while (begin < end)
int size = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
int end = size;
while (begin <= end && (begin + end) / 2 < size)
{
int pos = (begin + end) / 2;
const struct case_conversion_entry *item = (case_conversion_data + pos);
Expand All @@ -2858,8 +2860,9 @@ 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]);
while (begin <= end)
int size = sizeof(case_conversion_data)/sizeof(case_conversion_data[0]);
int end = size;
while (begin <= end && (begin + end) / 2 < size)
{
int pos = (begin + end) / 2;
const struct case_conversion_entry *item = (case_conversion_data + pos);
Expand Down

0 comments on commit 39e6a58

Please sign in to comment.