This is the mail archive of the glibc-bugs@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]

[Bug libc/16458] endian.h macros return integers of wrong type


https://sourceware.org/bugzilla/show_bug.cgi?id=16458

Jaak Ristioja <jaak at ristioja dot ee> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Jaak Ristioja <jaak at ristioja dot ee> ---
The manpage also explicitly says these are functions, not macros. And if these
were functions, they would in fact return values of the correct type,
regardless of the argument and parameter type, which is what the developer
expects in C. The only constraint being that "each argument shall have a type
such that its value may be assigned to an object with the unqualified version
of the type of its corresponding parameter" (i.e. ISO/IEC 9899:1999 6.5.2.2
Function calls).

If you insist these being macros, at least the documentation should be fixed
accordingly. Reopening.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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