Skip to main content
EOzde.1
Associate III
December 9, 2021
Question

CubeIDE shows negative value for unsigned integer?

  • December 9, 2021
  • 2 replies
  • 1383 views

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.

This topic has been closed for replies.

2 replies

HChat.1
Visitor II
April 8, 2023

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

Thank you

AScha.3
Super User
April 8, 2023

> 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""."