This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Suppress sign-conversion warning from FD_SET


On Fri, May 25, 2012 at 5:31 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> On Fri, May 25, 2012 at 2:23 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
>
>> Instead, how about using 'long int', since that's guaranteed
>> to work without munging the sign?
>
> Sounds good to me. I'll send an updated patch.

Here is the updated patch. Tested on Linux/x86_64.

Thanks,
-- 
Paul Pluzhnikov


2012-05-26  Paul Pluzhnikov  <ppluzhnikov@google.com>

        * debug/fdelt_chk.c (__fdelt_chk): Use signed long to avoid warning.
        * misc/bits/select2.h (__FD_ELT): Adjust for above.

Attachment: glibc-FD_SET-warning-20120526.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]