mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-16 16:14:47 -04:00
Pleasing Clang
- just a pair of explicit int to uint32_t conversions
This commit is contained in:
parent
9cd5022698
commit
635605e0c9
1 changed files with 2 additions and 2 deletions
|
@ -2921,7 +2921,7 @@ STATUS FfsParser::parseNvarStore(const QByteArray & data, const QModelIndex & in
|
||||||
QByteArray padding = data.mid(offset, unparsedSize);
|
QByteArray padding = data.mid(offset, unparsedSize);
|
||||||
UINT8 type;
|
UINT8 type;
|
||||||
|
|
||||||
if (padding.count(emptyByte) == unparsedSize) {
|
if ((UINT32)padding.count(emptyByte) == unparsedSize) {
|
||||||
// It's a free space
|
// It's a free space
|
||||||
name = QObject::tr("Free space");
|
name = QObject::tr("Free space");
|
||||||
type = Types::FreeSpace;
|
type = Types::FreeSpace;
|
||||||
|
@ -3028,7 +3028,7 @@ STATUS FfsParser::parseNvarStore(const QByteArray & data, const QModelIndex & in
|
||||||
|
|
||||||
// Entry with authenticated write (for SecureBoot)
|
// Entry with authenticated write (for SecureBoot)
|
||||||
if (entryHeader->Attributes & NVRAM_NVAR_ENTRY_AUTH_WRITE) {
|
if (entryHeader->Attributes & NVRAM_NVAR_ENTRY_AUTH_WRITE) {
|
||||||
if (extendedData.size() < sizeof(UINT64) + SHA256_HASH_SIZE) {
|
if ((UINT32)extendedData.size() < sizeof(UINT64) + SHA256_HASH_SIZE) {
|
||||||
msgExtDataTooShort = true;
|
msgExtDataTooShort = true;
|
||||||
isInvalid = true;
|
isInvalid = true;
|
||||||
// Do not parse further
|
// Do not parse further
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue