From 7665b1c760c5d9e5fe8b88678ad6ac241d106213 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 26 Aug 2024 21:37:29 +1000 Subject: [PATCH] GPUDevice: Warning fix --- src/util/gpu_device.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/gpu_device.cpp b/src/util/gpu_device.cpp index fd353a844..3ab012051 100644 --- a/src/util/gpu_device.cpp +++ b/src/util/gpu_device.cpp @@ -448,8 +448,7 @@ void GPUDevice::CloseShaderCache() if (GetPipelineCacheData(&data)) { // Save disk writes if it hasn't changed, think of the poor SSDs. - if (s_pipeline_cache_size != static_cast(data.size()) || - s_pipeline_cache_hash != SHA1Digest::GetDigest(data.cspan())) + if (s_pipeline_cache_size != data.size() || s_pipeline_cache_hash != SHA1Digest::GetDigest(data.cspan())) { Error error; INFO_LOG("Compressing and writing {} bytes to '{}'", data.size(), Path::GetFileName(s_pipeline_cache_path));