1234567891011121314151617181920212223242526272829303132333435 |
- https://bugs.gentoo.org/576818
- From 1f63650823cebf52044df840c81062ccb52163a2 Mon Sep 17 00:00:00 2001
- From: Daiki Ueno <ueno@gnu.org>
- Date: Mon, 28 Dec 2015 06:27:42 +0900
- Subject: [PATCH] maint: fix operator precedence in mbrtowc test
- This is a fix for test breakage introduced by commit 45228d96; the
- equality expression must be parenthesized when negated with '!',
- otherwise we always get:
- test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
- * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
- * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
- ---
- m4/mbrlen.m4 | 2 +-
- m4/mbrtowc.m4 | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
- --- a/configure
- +++ b/configure
- @@ -569,7 +569,7 @@ changequote([,])dnl
- int
- main (void)
- {
- - return ! mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
- + return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- --
- 2.6.2
|