mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Fix compiler type-cast warnings
This commit is contained in:
@@ -500,7 +500,7 @@ namespace VeraCrypt
|
|||||||
panData = *panNode->Value.get();
|
panData = *panNode->Value.get();
|
||||||
panData = vector<byte>(panData.rbegin(), panData.rbegin() + 2); // only interested in last digits
|
panData = vector<byte>(panData.rbegin(), panData.rbegin() + 2); // only interested in last digits
|
||||||
std::swap(panData[0], panData[1]);
|
std::swap(panData[0], panData[1]);
|
||||||
lastPANDigits = ArrayToHexWideString(panData.data(), panData.size());
|
lastPANDigits = ArrayToHexWideString(panData.data(), (int) panData.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ BOOL KeyFilesApply (HWND hwndDlg, Password *password, KeyFile *firstKeyFile, con
|
|||||||
// Determine whether it's a security token path
|
// Determine whether it's a security token path
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Token::IsKeyfilePathValid (kf->FileName, EMVSupportEnabled))
|
if (Token::IsKeyfilePathValid (kf->FileName, EMVSupportEnabled? true : false))
|
||||||
{
|
{
|
||||||
// Apply security token keyfile
|
// Apply security token keyfile
|
||||||
vector <byte> keyfileData;
|
vector <byte> keyfileData;
|
||||||
|
|||||||
Reference in New Issue
Block a user