avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #35020] stdint.h: signed types need explicit "signed


From: Stefan Ernst
Subject: [avr-libc-dev] [bug #35020] stdint.h: signed types need explicit "signed"
Date: Thu, 08 Dec 2011 23:44:53 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 (.NET CLR 3.5.30729)

URL:
  <http://savannah.nongnu.org/bugs/?35020>

                 Summary: stdint.h: signed types need explicit "signed"
                 Project: AVR C Runtime Library
            Submitted by: sternst
            Submitted on: Fr 09 Dez 2011 00:44:52 CET
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Any
           Fixed Release: None

    _______________________________________________________

Details:

The signed types in the header are all defined without an explicit "signed".
This can result in annoying behavior if used in a bit-field. The signedness of
a plain "int" in a bit-field is implementation defined (in gcc controlled by
command line switches). But a (e.g.) int16_t should be always signed, even in
a bit-field, therefore an explicit "signed" is necessary.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?35020>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]