VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-26 12:12:07 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 16:40:18 (GMT)
commit5dfdc1b4a5000173d01ce4809344c087807350d3 (patch)
tree86703620a6f65f4ac8976713ef7213d7faaafef4 /src
parenteb3e923091c5fe698019483827509e85edb30dcf (diff)
downloadVeraCrypt-5dfdc1b4a5000173d01ce4809344c087807350d3.zip
VeraCrypt-5dfdc1b4a5000173d01ce4809344c087807350d3.tar.gz
Windows: fix compilation warning
Diffstat (limited to 'src')
-rw-r--r--src/Common/BootEncryption.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp
index 3170976..c3aec66 100644
--- a/src/Common/BootEncryption.cpp
+++ b/src/Common/BootEncryption.cpp
@@ -3236,8 +3236,8 @@ namespace VeraCrypt
{
if (statMem.size == statFile.size)
{
- Buffer fileBuf (statFile.size);
- Buffer memBuf (statMem.size);
+ Buffer fileBuf ((size_t) statFile.size);
+ Buffer memBuf ((size_t) statMem.size);
zip_file_t* zfMem = zip_fopen_index (zMem, indexMem, 0);
if (zfMem)
@@ -3249,7 +3249,7 @@ namespace VeraCrypt
{
if (0 < zip_fread (zfFile, fileBuf.Ptr (), statFile.size))
{
- bMatch = (memcmp (memBuf.Ptr(), fileBuf.Ptr(), statFile.size) == 0);
+ bMatch = (memcmp (memBuf.Ptr(), fileBuf.Ptr(), (size_t) statFile.size) == 0);
}
zip_fclose (zfFile);
}