From d2caa772070fe510937c38c5354a15268122ea8b Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 2 Jul 2023 15:25:21 +0200 Subject: Fix compiler type-cast warnings --- src/Common/EMVCard.cpp | 2 +- src/Common/Keyfiles.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(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 keyfileData; -- cgit v1.2.3