diff options
author | Branko Čibej <brane@apache.org> | 2017-09-21 18:27:24 +0200 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2017-09-21 12:27:24 -0400 |
commit | 3a10df60133644b23d6e73196afdf15f41958da6 (patch) | |
tree | 22a164311d7076a0747ea6ec4f4d727d0d978c44 | |
parent | 2a2f97e1938bcae283c319e870f40b7ea67befc8 (diff) | |
download | libutf8proc-3a10df60133644b23d6e73196afdf15f41958da6.tar.gz libutf8proc-3a10df60133644b23d6e73196afdf15f41958da6.tar.bz2 |
Fix declaration-after-statement warning when compiling in strict C90 mode. (#113)
-rw-r--r-- | utf8proc.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -284,9 +284,8 @@ static utf8proc_bool grapheme_break_simple(int lbc, int tbc) { static utf8proc_bool grapheme_break_extended(int lbc, int tbc, utf8proc_int32_t *state) { - int lbc_override = lbc; - if (state && *state != UTF8PROC_BOUNDCLASS_START) - lbc_override = *state; + int lbc_override = ((state && *state != UTF8PROC_BOUNDCLASS_START) + ? *state : lbc); utf8proc_bool break_permitted = grapheme_break_simple(lbc_override, tbc); if (state) { // Special support for GB 12/13 made possible by GB999. After two RI |