Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8453

Enum given unsigned type, but documentation suggests signed type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low

      Whether an enumerated type has an underlying integer type that is signed or unsigned is not well documented in the compiler manual, and is fairly complicated. In fact, the documentation is wrong for this test case. Given an enumerated type with all non-negative values that fit in "signed int," the compiler will pick "unsigned int" for the underlying type, which is common practice in the industry. The documentation claims that the type chosen will be "signed int." We will be carefully examining enumerated types and the documentation for enumerated types for future releases.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: