gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 02/07: mhd_str: minor optimisation


From: gnunet
Subject: [libmicrohttpd] 02/07: mhd_str: minor optimisation
Date: Mon, 05 Jul 2021 16:07:43 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 8e0fdcad6c1a7a7d6d66c8410071197af08e2c63
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jun 23 11:36:57 2021 +0300

    mhd_str: minor optimisation
---
 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
index 41697951..b7fb54ee 100644
--- 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 */
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]