From 635605e0c97babd75f8f334e11fd93be821ef704 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Mon, 18 Apr 2016 17:05:56 +0200 Subject: [PATCH] Pleasing Clang - just a pair of explicit int to uint32_t conversions --- common/ffsparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index 8496fd3..3e2c406 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -2921,7 +2921,7 @@ STATUS FfsParser::parseNvarStore(const QByteArray & data, const QModelIndex & in QByteArray padding = data.mid(offset, unparsedSize); UINT8 type; - if (padding.count(emptyByte) == unparsedSize) { + if ((UINT32)padding.count(emptyByte) == unparsedSize) { // It's a free space name = QObject::tr("Free space"); type = Types::FreeSpace; @@ -3028,7 +3028,7 @@ STATUS FfsParser::parseNvarStore(const QByteArray & data, const QModelIndex & in // Entry with authenticated write (for SecureBoot) 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; isInvalid = true; // Do not parse further