mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-02-13 15:22:42 +08:00
Fix a compiler warning
This commit is contained in:
parent
1ab52fde35
commit
9d0bcd0bed
@ -314,7 +314,6 @@ UINT8 FfsEngine::parseIntelImage(const QByteArray & intelImage, QModelIndex & in
|
||||
}
|
||||
|
||||
bios = intelImage.mid(biosBegin, biosEnd);
|
||||
|
||||
}
|
||||
else {
|
||||
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 biosEnd = calculateRegionSize(regionSection->BiosBase, regionSection->BiosLimit);
|
||||
// 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;
|
||||
biosEnd = model->header(index).size() + model->body(index).size();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user