This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #12836] Make fmemopen(buf,size,"w+b") binary.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 10 May 2013 11:23:23 -0700 (PDT)
- Subject: Re: [PATCH] [BZ #12836] Make fmemopen(buf,size,"w+b") binary.
- References: <20130509161648 dot GA31713 at domone dot kolej dot mff dot cuni dot cz>
> - c->binmode = mode[0] != '\0' && mode[1] == 'b';
> + c->binmode = mode[0] && mode[1 + (mode[1] == '+')] == 'b';
No implicit Boolean coercion, please.