I want to do some casting from signed char to unsigned char using
QByteArray block;
block = tcpSocket->readAll();
Qt Code:
unsigned char* ublock = static_cast<unsigned char*>(block.data());To copy to clipboard, switch view to plain text mode
but get
Can someone explain where I am going wrong?error: invalid static_cast from type `char*' to type `unsigned char*'
Bookmarks