#How can I cast u8 - x expression to unsigned int (like in c++)?

1 messages · Page 1 of 1 (latest)

calm light
#

How can I cast u8 - x expression to unsigned int (like in c++)?

charred shadow
#

The title is not at all clear. What is x? Why is the x being subtracted from a type? What is an unsigned int? Do you mean literally C’s “unsigned int”, for ABI compatibility purposes, or do you just mean the equivalent to the most commonly sized unsigned integer in C (u32)?

frosty crow
#

You can do charVal -% x, and it will wrap around to 255