Page 1 of 1

Format issue

Posted: Fri Feb 26, 2016 8:16 am
by SeeCwriter
This seems to be related to v2.7.4, since the same code compiled with v2.7.3 works correctly.

Code: Select all

short myval = -16;

iprintf("Myval: %d, 0x%x\r\n", myval, myval );
Output: "Myval: --16, 0xfffffff0"

Declaring "myval" as an int doesn't change the output.
Using "printf" doesn't change the output.

Update: Using "sprint()" and "siprintf()" produce the same output.

Re: Format issue

Posted: Sat Feb 27, 2016 9:51 pm
by dciliske
Correct: Known bug. Contact support for the fix.