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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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

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

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-1591 - Ternary (?:) expression with 0/1 re...
                SYNCHRONIZED
                • Last Sync Date: