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

printf gives wrong value for pointer when its value is incremented

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Low
    • Resolution: Unresolved
    • Code Generation Tools
    • CODEGEN-60
    • SDSCM00008630
    • Hide
      C2000_16.9.0.LTS
      C2000_18.1.0.LTS
      C2000_6.4.0B1
      MSP430_20.2.0.LTS
      MSP430_21.6.0.LTS
      C2000_21.6.0.LTS
      MSP430_15.12.0.LTS
      C2000_20.2.0.LTS
      MSP430_18.1.0.LTS
      C2000_22.6.0.LTS
      C2000_15.12.0.LTS
      MSP430_4.4.0B1
      MSP430_18.12.0.LTS
      MSP430_16.9.0.LTS
      C2000_18.12.0.LTS
      Show
      C2000_16.9.0.LTS C2000_18.1.0.LTS C2000_6.4.0B1 MSP430_20.2.0.LTS MSP430_21.6.0.LTS C2000_21.6.0.LTS MSP430_15.12.0.LTS C2000_20.2.0.LTS MSP430_18.1.0.LTS C2000_22.6.0.LTS C2000_15.12.0.LTS MSP430_4.4.0B1 MSP430_18.12.0.LTS MSP430_16.9.0.LTS C2000_18.12.0.LTS
    • Hide

      To get rid of the warning message modify the printf statement as
      follows:
        printf('0x%lx\n', 0x10000 + (t=(long int)&global_var));
      This modified code executes correctly too.


      Show
      To get rid of the warning message modify the printf statement as follows:   printf('0x%lx\n', 0x10000 + (t=(long int)&global_var)); This modified code executes correctly too.
    • No plans to address at this time.

    Description

      printf gives wrong value for pointer when its value is incremented

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: