cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE shows negative value for unsigned integer?

EOzde.1
Associate III

Hi,

In my live expression, I see my unsigned variables go negative values. For example, when uint8_t type variable is 128 it shows as a -1, if 129 then -2. I don't understand what is wrong. I can see uint8_t in the type column in the live expression. It happens with every unsigned variable 16 or 32 does not matter.

Does anybody know anything about it?

Best Regards.

2 REPLIES 2
HChat.1
Associate

Did you got the proper justification, if yes can you please explain it.

Thank you

AScha.3
Chief

> it shows as a -1

it - who shows in which state ? in debug ? in -> memory view ? explain detail, + example.

If you feel a post has answered your question, please click "Accept as Solution".