Data type conversion [qint64 / int]
Solved
General and Desktop
-
After updating qt creator, i have a warning on this :
QByteArray buffer; buffer.resize(socket->pendingDatagramSize());
warning : implicit conversion loses integer precision : 'qing64' (aka 'lonl long') to int
can i just do static_cast<int>() or is there a better solution ?
-
You can safely do a static_cast<int> here since the pendingDatagramSize will never exceed 2GB (in the near future)