fix indentation and add curlies (closes #27093)

This commit is contained in:
Benjamin Peterson 2016-05-23 22:47:50 -07:00
parent 05d3921cc1
commit 5a093c158a
1 changed files with 15 additions and 11 deletions

View File

@ -328,21 +328,25 @@ find_pairencmap(ucs2_t body, ucs2_t modifier,
min = 0;
max = haystacksize;
for (pos = haystacksize >> 1; min != max; pos = (min + max) >> 1)
for (pos = haystacksize >> 1; min != max; pos = (min + max) >> 1) {
if (value < haystack[pos].uniseq) {
if (max == pos) break;
else max = pos;
if (max != pos) {
max = pos;
continue;
}
}
else if (value > haystack[pos].uniseq) {
if (min == pos) break;
else min = pos;
if (min != pos) {
min = pos;
continue;
}
}
else
break;
}
if (value == haystack[pos].uniseq)
if (value == haystack[pos].uniseq) {
return haystack[pos].code;
else
}
return DBCINV;
}
#endif