public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16458] New: endian.h macros return integers of wrong type
@ 2014-01-16 12:47 jaak at ristioja dot ee
  2014-01-16 13:14 ` [Bug libc/16458] " neleai at seznam dot cz
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jaak at ristioja dot ee @ 2014-01-16 12:47 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16458
           Summary: endian.h macros return integers of wrong type
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: jaak at ristioja dot ee
                CC: drepper.fsp at gmail dot com

#define _BSD_SOURCE
#include <endian.h>
#include <stdint.h>

int main() {
  const long int i = 42;
  const uint64_t b = htole64(i);
  return (int) b;
}

$ gcc -Wsign-conversion test.c -o test
test.c: In function 'main':
test.c:7:3: warning: conversion to 'uint64_t' from 'long int' may change the
sign of the result [-Wsign-conversion]

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-06-13  8:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-16 12:47 [Bug libc/16458] New: endian.h macros return integers of wrong type jaak at ristioja dot ee
2014-01-16 13:14 ` [Bug libc/16458] " neleai at seznam dot cz
2014-01-16 13:43 ` jaak at ristioja dot ee
2014-01-16 15:09 ` neleai at seznam dot cz
2014-01-16 15:16 ` jaak at ristioja dot ee
2014-01-16 19:04 ` joseph at codesourcery dot com
2014-01-16 19:47 ` jaak at ristioja dot ee
2014-01-16 20:14 ` [Bug libc/16458] endian.h and netinet/in.h byte order macros return unsigned " jaak at ristioja dot ee
2014-01-16 20:17 ` [Bug libc/16458] endian.h and netinet/in.h byte order macros return values " jaak at ristioja dot ee
2014-01-16 20:45 ` neleai at seznam dot cz
2014-06-13  8:56 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).