VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-11 09:07:51 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-11 15:28:19 (GMT)
commit46a3fe1458b6d34eb5f1b97e8fc6f60656cb3611 (patch)
tree848348ef001de15833d5d27c7efcc33851eae2d2 /src/Format
parent6ed97738946b5ed7acd28116972a1fe720debc3d (diff)
downloadVeraCrypt-46a3fe1458b6d34eb5f1b97e8fc6f60656cb3611.zip
VeraCrypt-46a3fe1458b6d34eb5f1b97e8fc6f60656cb3611.tar.gz
Windows: fix compiler warnings
Diffstat (limited to 'src/Format')
-rw-r--r--src/Format/Tcformat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index e7acdc6..d6eb0c3 100644
--- a/src/Format/Tcformat.c
+++ b/src/Format/Tcformat.c
@@ -6134,8 +6134,8 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
if (nVolumeSize < (bHiddenVolHost ? TC_MIN_HIDDEN_VOLUME_HOST_SIZE : (bHiddenVol ? TC_MIN_HIDDEN_VOLUME_SIZE : TC_MIN_VOLUME_SIZE)))
AbortProcess ("ERR_VOLUME_SIZE_TOO_SMALL");
- if ( ((!bHiddenVolHost && bHiddenVol) && (nVolumeSize > nMaximumHiddenVolSize))
- || (nVolumeSize > (bHiddenVolHost ? TC_MAX_HIDDEN_VOLUME_HOST_SIZE : TC_MAX_VOLUME_SIZE))
+ if ( ((!bHiddenVolHost && bHiddenVol) && (nVolumeSize > (unsigned __int64) nMaximumHiddenVolSize))
+ || (nVolumeSize > (unsigned __int64) (bHiddenVolHost ? TC_MAX_HIDDEN_VOLUME_HOST_SIZE : TC_MAX_VOLUME_SIZE))
)
{
AbortProcess ("ERR_VOLUME_SIZE_TOO_BIG");