mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-19 02:41:29 +03:00
Fix warnings part 2
This commit is contained in:
@@ -56,8 +56,8 @@ QVector<unsigned char> AsciiView::readSMARTData(const QString& device_path) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
int currentSize = result.size();
|
qsizetype currentSize = result.size();
|
||||||
result.resize(currentSize + INQUIRY_RESP_LEN);
|
result.resize(static_cast<int>(currentSize + INQUIRY_RESP_LEN));
|
||||||
memcpy(result.data() + currentSize, inquiry_resp, INQUIRY_RESP_LEN);
|
memcpy(result.data() + currentSize, inquiry_resp, INQUIRY_RESP_LEN);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user