Format issue

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 635
Joined: Mon May 12, 2008 10:55 am

Format issue

Post 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.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: Format issue

Post by dciliske »

Correct: Known bug. Contact support for the fix.
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply