What is a better way to set a char to a hex value?
I can do it like:
[tt]
char c = 0xB0;
[/tt]
but I get a compiler warning:
[tt]
warning C4305: 'initializing' : truncation from 'const int' to 'char'
[/tt]
-Ed ;-)
I can do it like:
[tt]
char c = 0xB0;
[/tt]
but I get a compiler warning:
[tt]
warning C4305: 'initializing' : truncation from 'const int' to 'char'
[/tt]
-Ed ;-)
________________________________
Destiny is not a matter of chance; it is a matter of choice.
Destiny is not a matter of chance; it is a matter of choice.