Kaydet (Commit) 5a093c15 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix indentation and add curlies (closes #27093)

üst 05d3921c
...@@ -328,22 +328,26 @@ find_pairencmap(ucs2_t body, ucs2_t modifier, ...@@ -328,22 +328,26 @@ find_pairencmap(ucs2_t body, ucs2_t modifier,
min = 0; min = 0;
max = haystacksize; 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 (value < haystack[pos].uniseq) {
if (max == pos) break; if (max != pos) {
else max = pos; max = pos;
continue;
}
} }
else if (value > haystack[pos].uniseq) { else if (value > haystack[pos].uniseq) {
if (min == pos) break; if (min != pos) {
else min = pos; min = pos;
continue;
}
} }
else break;
break; }
if (value == haystack[pos].uniseq) if (value == haystack[pos].uniseq) {
return haystack[pos].code; return haystack[pos].code;
else }
return DBCINV; return DBCINV;
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment