mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +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;
|
||||
}
|
||||
|
||||
int currentSize = result.size();
|
||||
result.resize(currentSize + INQUIRY_RESP_LEN);
|
||||
qsizetype currentSize = result.size();
|
||||
result.resize(static_cast<int>(currentSize + INQUIRY_RESP_LEN));
|
||||
memcpy(result.data() + currentSize, inquiry_resp, INQUIRY_RESP_LEN);
|
||||
|
||||
close(fd);
|
||||
|
||||
Reference in New Issue
Block a user