Blame SOURCES/findutils-4.6.0-mbrtowc-tests.patch
|
|
10a327 |
From 06a46ba755195810f2aeda01b12d1ccfe7c2dcfd Mon Sep 17 00:00:00 2001
|
|
|
10a327 |
From: Daiki Ueno <ueno@gnu.org>
|
|
|
10a327 |
Date: Mon, 28 Dec 2015 06:27:42 +0900
|
|
|
10a327 |
Subject: [PATCH] maint: fix operator precedence in mbrtowc test
|
|
|
10a327 |
|
|
|
10a327 |
This is a fix for test breakage introduced by commit 45228d96; the
|
|
|
10a327 |
equality expression must be parenthesized when negated with '!',
|
|
|
10a327 |
otherwise we always get:
|
|
|
10a327 |
|
|
|
10a327 |
test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
|
|
|
10a327 |
|
|
|
10a327 |
* m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
|
|
|
10a327 |
|
|
|
10a327 |
Upstream-commit: 1f63650823cebf52044df840c81062ccb52163a2
|
|
|
10a327 |
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
|
|
10a327 |
---
|
|
|
10a327 |
gl/m4/mbrtowc.m4 | 2 +-
|
|
|
10a327 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
10a327 |
|
|
|
10a327 |
diff --git a/gl/m4/mbrtowc.m4 b/gl/m4/mbrtowc.m4
|
|
|
10a327 |
index deb9f06..be2e9d6 100644
|
|
|
10a327 |
--- a/gl/m4/mbrtowc.m4
|
|
|
10a327 |
+++ b/gl/m4/mbrtowc.m4
|
|
|
10a327 |
@@ -569,7 +569,7 @@ changequote([,])dnl
|
|
|
10a327 |
int
|
|
|
10a327 |
main (void)
|
|
|
10a327 |
{
|
|
|
10a327 |
- return ! mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
|
|
|
10a327 |
+ return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
|
|
|
10a327 |
}]])],
|
|
|
10a327 |
[gl_cv_func_mbrtowc_empty_input=yes],
|
|
|
10a327 |
[gl_cv_func_mbrtowc_empty_input=no],
|
|
|
10a327 |
--
|
|
|
10a327 |
2.5.0
|
|
|
10a327 |
|