--- libs\filesystem\src\operations.cpp 2012-06-18 07:40:58.000000000 +0100 +++ libs\filesystem\src\operations.cpp 2012-07-04 12:08:47.000000000 +0100 @@ -1758,13 +1758,13 @@ return p; # else // Windows std::vector buf(GetTempPathW(0, NULL)); - if (buf.empty() || GetTempPathW(buf.size(), &buf[0])==0) + if (buf.empty() || GetTempPathW(static_cast(buf.size()), &buf[0])==0) { if(!buf.empty()) ::SetLastError(ENOTDIR); error(true, ec, "boost::filesystem::temp_directory_path"); return path(); } --- libs\filesystem\src\unique_path.cpp 2012-03-26 08:44:24.000000000 +0100 +++ libs\filesystem\src\unique_path.cpp 2012-07-04 12:08:55.000000000 +0100 @@ -88,13 +88,13 @@ else errval = 0; } } if (!errval) { - BOOL gen_ok = ::CryptGenRandom(handle, len, static_cast(buf)); + BOOL gen_ok = ::CryptGenRandom(handle, static_cast(len), static_cast(buf)); if (!gen_ok) errval = ::GetLastError(); ::CryptReleaseContext(handle, 0); } if (!errval) return; --- libs\filesystem\src\windows_file_codecvt.cpp 2012-03-26 08:44:24.000000000 +0100 +++ libs\filesystem\src\windows_file_codecvt.cpp 2012-07-04 12:09:18.000000000 +0100 @@ -37,13 +37,13 @@ wchar_t* to, wchar_t* to_end, wchar_t*& to_next) const { UINT codepage = AreFileApisANSI() ? CP_ACP : CP_OEMCP; int count; if ((count = ::MultiByteToWideChar(codepage, MB_PRECOMPOSED, from, - from_end - from, to, to_end - to)) == 0) + static_cast(from_end - from), to, static_cast(to_end - to))) == 0) { return error; // conversion failed } from_next = from_end; to_next = to + count; @@ -57,19 +57,19 @@ char* to, char* to_end, char* & to_next) const { UINT codepage = AreFileApisANSI() ? CP_ACP : CP_OEMCP; int count; if ((count = ::WideCharToMultiByte(codepage, WC_NO_BEST_FIT_CHARS, from, - from_end - from, to, to_end - to, 0, 0)) == 0) + static_cast(from_end - from), to, static_cast(to_end - to), 0, 0)) == 0) { return error; // conversion failed } from_next = from_end; to_next = to + count; *to_next = '\0'; return ok; } # endif // BOOST_WINDOWS_API