Hi guys,
I am having problems with trying to perform a basic 'shift left' on a char.
char temp[1];
temp[0] = buffer[0] << 1; // buffer[0] is 0xff
After this I have temp[0] writing to a file. Instead of being the expected 0x7F it is written as 0xF8.
Any guidance on what I am doing wrong would be awesome.
Thanks in advance