I want to do some casting from signed char to unsigned char using
QByteArray block;
block = tcpSocket->readAll();
Code:
unsigned char* ublock = static_cast<unsigned char*>(block.data());
but get
Can someone explain where I am going wrong?Quote:
error: invalid static_cast from type `char*' to type `unsigned char*'
