From a4ed6be38c58a009a480a81931676273a78e36fb Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 15 Dec 2019 17:49:21 +0100 Subject: MacOSX: fix compilation error caused by missing StringConverter::ToWide method that takes a size_t argument (we cast to uint32) --- src/Core/Unix/CoreUnix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Core') diff --git a/src/Core/Unix/CoreUnix.cpp b/src/Core/Unix/CoreUnix.cpp index 499ea439..a6485208 100644 --- a/src/Core/Unix/CoreUnix.cpp +++ b/src/Core/Unix/CoreUnix.cpp @@ -477,7 +477,7 @@ namespace VeraCrypt const uint32 devSectorSize = volume->GetFile()->GetDeviceSectorSize(); const size_t volSectorSize = volume->GetSectorSize(); if (devSectorSize != volSectorSize) - throw DeviceSectorSizeMismatch (SRC_POS, StringConverter::ToWide(devSectorSize) + L" != " + StringConverter::ToWide(volSectorSize)); + throw DeviceSectorSizeMismatch (SRC_POS, StringConverter::ToWide(devSectorSize) + L" != " + StringConverter::ToWide((uint32) volSectorSize)); } // Find a free mount point for FUSE service -- cgit v1.2.3