Fix meson builds

This commit is contained in:
Nikolaj Schlej 2023-02-19 12:38:35 -08:00
parent 7eb565d788
commit 6c695c12a7
2 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@ uefitoolcommon = static_library('uefitoolcommon',
'treemodel.cpp',
'utility.cpp',
'ustring.cpp',
'generated/ami_nvar.cpp',
'generated/intel_acbp_v1.cpp',
'generated/intel_acbp_v2.cpp',
'generated/intel_keym_v1.cpp',

View file

@ -130,7 +130,7 @@ USTATUS NvramParser::parseNvarStore(const UModelIndex & index)
if (previousEntry == entry)
break;
if (previousEntry->next() + previousEntry->offset() == entry->offset()) { // Previous link is present and valid
if ((UINT32)previousEntry->next() + (UINT32)previousEntry->offset() == (UINT32)entry->offset()) { // Previous link is present and valid
prevEntryIndex = index.model()->index(i, 0, index);
// Make sure that we are linking to a valid entry
NVAR_ENTRY_PARSING_DATA pd = readUnaligned((NVAR_ENTRY_PARSING_DATA*)model->parsingData(prevEntryIndex).constData());