VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Common/EMVCard.cpp2
-rw-r--r--src/Common/Keyfiles.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/EMVCard.cpp b/src/Common/EMVCard.cpp
index 72c0952b..172a9628 100644
--- a/src/Common/EMVCard.cpp
+++ b/src/Common/EMVCard.cpp
@@ -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());
}
}
}
diff --git a/src/Common/Keyfiles.c b/src/Common/Keyfiles.c
index d5a2d5c2..058fa975 100644
--- a/src/Common/Keyfiles.c
+++ b/src/Common/Keyfiles.c
@@ -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;