mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] slightly simplify a condition in vfwscanf
@ 2017-07-09 20:58 Bartosz Brachaczek
  0 siblings, 0 replies; only message in thread
From: Bartosz Brachaczek @ 2017-07-09 20:58 UTC (permalink / raw)
  To: musl; +Cc: Bartosz Brachaczek

the OR is not needed since commit
de80ea9f1c2821cbb4205533b86d5d17f9e8d376.
---
 src/stdio/vfwscanf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stdio/vfwscanf.c b/src/stdio/vfwscanf.c
index 1ebc5cef..ad8e2b9a 100644
--- a/src/stdio/vfwscanf.c
+++ b/src/stdio/vfwscanf.c
@@ -191,7 +191,7 @@ int vfwscanf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap)
 		}
 
 		if (t != 'n') {
-			if (t != '[' && (t|32) != 'c')
+			if (t != '[' && t != 'c')
 				while (iswspace((c=getwc(f)))) pos++;
 			else
 				c=getwc(f);
-- 
2.13.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-09 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-09 20:58 [PATCH] slightly simplify a condition in vfwscanf Bartosz Brachaczek

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).