QByteArray comparison
-
Why the statement:
@
@ QByteArray data (initialized somehow);
@
@ if(data.at(0) == 0xFF)
@ do_something();
@gives such warning:
comparison is always false due to limited range of data type [-Wtype-limits].You can initialize QByteArray with 0xff value (or not...?), so why cant you compare it?
-