This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: Warnings in ld-monetary.c


Ulrich Drepper <drepper@redhat.com> writes:

> Andreas Jaeger <aj@suse.de> writes:
>
>> programs/ld-monetary.c:282: warning: comparison is always false due to limited range of data type
>> programs/ld-monetary.c:283: warning: comparison is always false due to limited range of data type
>> 
>> Is the code really correct?
>
> Yep.  War immer auskommentiert wegen der Warnungen aber nun machen die
> Makros mehr und wir brauchen sie.

  English translation: 
  Yes, the code is correct.  It has been
  commented out because of the warnings but now the macros do more and
  we need them.

So we really need to check a char (int_frac_digits) and compare it
again -127 and 127?

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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