mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-13 06:34:42 -04:00
Fix a compiler warning
This commit is contained in:
parent
1ab52fde35
commit
9d0bcd0bed
1 changed files with 1 additions and 2 deletions
|
@ -314,7 +314,6 @@ UINT8 FfsEngine::parseIntelImage(const QByteArray & intelImage, QModelIndex & in
|
||||||
}
|
}
|
||||||
|
|
||||||
bios = intelImage.mid(biosBegin, biosEnd);
|
bios = intelImage.mid(biosBegin, biosEnd);
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msg(tr("parseIntelImage: descriptor parsing failed, BIOS region not found in descriptor"));
|
msg(tr("parseIntelImage: descriptor parsing failed, BIOS region not found in descriptor"));
|
||||||
|
@ -2860,7 +2859,7 @@ UINT8 FfsEngine::reconstructIntelImage(const QModelIndex& index, QByteArray& rec
|
||||||
UINT32 biosBegin = calculateRegionOffset(regionSection->BiosBase);
|
UINT32 biosBegin = calculateRegionOffset(regionSection->BiosBase);
|
||||||
UINT32 biosEnd = calculateRegionSize(regionSection->BiosBase, regionSection->BiosLimit);
|
UINT32 biosEnd = calculateRegionSize(regionSection->BiosBase, regionSection->BiosLimit);
|
||||||
// Gigabyte descriptor map
|
// Gigabyte descriptor map
|
||||||
if (biosEnd - biosBegin == model->header(index).size() + model->body(index).size()) {
|
if (biosEnd - biosBegin == (UINT32)(model->header(index).size() + model->body(index).size())) {
|
||||||
biosBegin = meEnd;
|
biosBegin = meEnd;
|
||||||
biosEnd = model->header(index).size() + model->body(index).size();
|
biosEnd = model->header(index).size() + model->body(index).size();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue