From 8d62969b4d27f91875387f09f558d30097b064fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Thu, 9 Jan 2020 16:21:41 +0100 Subject: [PATCH] Fix arraySize for array-valued return parameter. (#476) --- VulkanHppGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 5d18c44..5025b7b 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -1585,7 +1585,7 @@ void VulkanHppGenerator::appendFunctionBodyEnhancedLocalReturnVariableVectorSize // -> look for it and get it's actual size for (auto const& vpi : vectorParamIndices) { - if ((vpi.first != vectorParamIndex.first) || (vpi.second != vectorParamIndex.second)) + if ((vpi.first != vectorParamIndex.first) && (vpi.second == vectorParamIndex.second)) { size = startLowerCase(stripPrefix(params[vpi.first].name, "p")) + ".size()"; break;