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

Ternary (?:) expression with 0/1 result uses type of predicate, not result, when optimised

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-5317
    • Hide
      C2000_16.9.0.LTS
       MSP430_16.9.0.LTS
      Show
      C2000_16.9.0.LTS  MSP430_16.9.0.LTS
    • Hide
      C2000_18.12.0.LTS
       MSP430_18.12.0.LTS
      Show
      C2000_18.12.0.LTS  MSP430_18.12.0.LTS
    • Compile with -Ooff.
    • An expression like "(p ? 1 : 0)" can be converted by the compiler into "(p != 0)". If the types of 1 and 0 are wider than int, ...

      Ternary (? expression with 0/1 result uses type of predicate, not result, when optimised

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

              Created:
              Updated:
              Resolved: