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 #4 from Jaak Ristioja <jaak at ristioja dot ee> ---
Indeed. But I should also get a warning from this:

  #define _BSD_SOURCE
  #include <endian.h>  
  int main() {
    const long int i = 42;
    const long int b = htole64(i);
    return (int) b;
  }

Which I don't:

$ gcc -Wall -Wextra -Wsign-conversion -Wconversion
-Wimplicit-function-declaration test5.c -c

-- 
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]