diff options
| author | Stefan Boberg <[email protected]> | 2025-09-26 15:19:39 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-09-26 15:19:39 +0200 |
| commit | d359631c8da793c4f7780dcbd04beef20c44b30f (patch) | |
| tree | 616b287f25e506bc13a768f95f668093fc255b50 /src/zenutil/chunkedcontent.cpp | |
| parent | list missing block hashes when --verbose is enabled (#512) (diff) | |
| download | zen-d359631c8da793c4f7780dcbd04beef20c44b30f.tar.xz zen-d359631c8da793c4f7780dcbd04beef20c44b30f.zip | |
fix for C4244 truncation warning (#515)
Fixes warning/error introduced with msvc cl 19.38.33145
Diffstat (limited to 'src/zenutil/chunkedcontent.cpp')
| -rw-r--r-- | src/zenutil/chunkedcontent.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenutil/chunkedcontent.cpp b/src/zenutil/chunkedcontent.cpp index 4f2aad95f..757bcfae5 100644 --- a/src/zenutil/chunkedcontent.cpp +++ b/src/zenutil/chunkedcontent.cpp @@ -930,7 +930,9 @@ BuildChunkedContentLookup(const ChunkedFolderContent& Content) for (uint32_t PathIndex = 0; PathIndex < Content.Paths.size(); PathIndex++) { std::string LowercaseExtension = Content.Paths[PathIndex].extension().string(); - std::transform(LowercaseExtension.begin(), LowercaseExtension.end(), LowercaseExtension.begin(), ::tolower); + std::transform(LowercaseExtension.begin(), LowercaseExtension.end(), LowercaseExtension.begin(), [](char c) { + return (char)::tolower(c); + }); Result.PathExtensionHash[PathIndex] = HashStringDjb2(LowercaseExtension); if (Content.RawSizes[PathIndex] > 0) { |