VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-07-02 15:25:21 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-07-02 15:25:21 +0200
commitd2caa772070fe510937c38c5354a15268122ea8b (patch)
tree950c46a767b978fd24ad939c827adb4343d3c26c /src/Common
parentfe30ebe3f3a17cf7cc46ce154f736380df39f78b (diff)
downloadVeraCrypt-d2caa772070fe510937c38c5354a15268122ea8b.tar.gz
VeraCrypt-d2caa772070fe510937c38c5354a15268122ea8b.zip
Fix compiler type-cast warnings
Diffstat (limited to 'src/Common')
-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;