commit 8e0fdcad6c1a7a7d6d66c8410071197af08e2c63 parent d51a5ce419a322c290e5d052cc01541570e7ac0f Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Wed, 23 Jun 2021 11:36:57 +0300 mhd_str: minor optimisation Diffstat:
| M | src/microhttpd/mhd_str.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/mhd_str.c b/src/microhttpd/mhd_str.c @@ -232,7 +232,7 @@ charsequalcaseless (const char c1, const char c2) return ( (c1 == c2) || (isasciiupper (c1) ? ((c1 - 'A' + 'a') == c2) : - (isasciiupper (c2) && (c1 == (c2 - 'A' + 'a')))) ); + ((c1 == (c2 - 'A' + 'a')) && isasciiupper (c2))) ); } @@ -360,7 +360,7 @@ charsequalcaseless (const char c1, const char c2) ( ((c1) == (c2)) || \ (isasciiupper (c1) ? \ (((c1) - 'A' + 'a') == (c2)) : \ - (isasciiupper (c2) && ((c1) == ((c2) - 'A' + 'a')))) ) + (((c1) == ((c2) - 'A' + 'a')) && isasciiupper (c2))) ) #endif /* !INLINE_FUNC */