Fix compiler type-cast warnings

This commit is contained in:
Mounir IDRASSI 2023-07-02 15:25:21 +02:00
parent fe30ebe3f3
commit d2caa77207
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
2 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ namespace VeraCrypt
panData = *panNode->Value.get();
panData = vector<byte>(panData.rbegin(), panData.rbegin() + 2); // only interested in last digits
std::swap(panData[0], panData[1]);
lastPANDigits = ArrayToHexWideString(panData.data(), panData.size());
lastPANDigits = ArrayToHexWideString(panData.data(), (int) panData.size());
}
}
}

View File

@ -250,7 +250,7 @@ BOOL KeyFilesApply (HWND hwndDlg, Password *password, KeyFile *firstKeyFile, con
// Determine whether it's a security token path
try
{
if (Token::IsKeyfilePathValid (kf->FileName, EMVSupportEnabled))
if (Token::IsKeyfilePathValid (kf->FileName, EMVSupportEnabled? true : false))
{
// Apply security token keyfile
vector <byte> keyfileData;