[companion] Minor warning fix.

This commit is contained in:
Max Paperno
2017-01-15 14:46:17 -05:00
parent 2b9badf728
commit 616eb9206d
+2 -2
View File
@@ -72,8 +72,8 @@ bool BinEepromFormat::writeToFile(const uint8_t * eeprom, uint32_t size)
} }
QTextStream outputStream(&file); QTextStream outputStream(&file);
long len = file.write((char *)eeprom, size); qint64 len = file.write((char *)eeprom, size);
if (len != size) { if (len != qint64(size)) {
setError(QObject::tr("Error writing file %1:\n%2.").arg(filename).arg(file.errorString())); setError(QObject::tr("Error writing file %1:\n%2.").arg(filename).arg(file.errorString()));
return false; return false;
} }