From 6aaf38092400673e8732aaad105c7f8144c4e874 Mon Sep 17 00:00:00 2001 From: Eugene Golushkov Date: Wed, 27 Nov 2024 16:51:06 +0100 Subject: [PATCH] warning C4267: 'argument': conversion from 'size_t' to 'unsigned long', possible loss of data --- RenderSystems/Vulkan/src/Vao/OgreVulkanVaoManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RenderSystems/Vulkan/src/Vao/OgreVulkanVaoManager.cpp b/RenderSystems/Vulkan/src/Vao/OgreVulkanVaoManager.cpp index 77a47b65a7..67295f70d2 100644 --- a/RenderSystems/Vulkan/src/Vao/OgreVulkanVaoManager.cpp +++ b/RenderSystems/Vulkan/src/Vao/OgreVulkanVaoManager.cpp @@ -185,8 +185,8 @@ namespace Ogre params->find( "VaoManager::mDelayedBlocksFlushThreshold" ); if( itor != params->end() ) { - mDelayedBlocksFlushThreshold = static_cast( - StringConverter::parseUnsignedLong( itor->second, mDelayedBlocksFlushThreshold ) ); + mDelayedBlocksFlushThreshold = + StringConverter::parseSizeT( itor->second, mDelayedBlocksFlushThreshold ); } } }