From d05da438a10883131cc8a61e20b3c5e05c7959bd Mon Sep 17 00:00:00 2001 From: dfranx Date: Wed, 10 Mar 2021 23:00:49 +0100 Subject: [PATCH] Small fix --- src/SHADERed/Objects/FrameAnalysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SHADERed/Objects/FrameAnalysis.cpp b/src/SHADERed/Objects/FrameAnalysis.cpp index 52a47648..22b31875 100644 --- a/src/SHADERed/Objects/FrameAnalysis.cpp +++ b/src/SHADERed/Objects/FrameAnalysis.cpp @@ -772,11 +772,11 @@ namespace ed { lastBBIndex = i; continue; } - spvgentwo::BasicBlock& bb = *(f.begin() + i); + spvgentwo::BasicBlock& bb = *(f.begin() + (unsigned int)i); bb.clear(); } - spvgentwo::BasicBlock& bb = *(f.begin() + lastBBIndex); + spvgentwo::BasicBlock& bb = *(f.begin() + (unsigned int)lastBBIndex); spvgentwo::Instruction* loadedInput = bb->opLoad(inputInstruction); spvgentwo::Instruction* newValue = nullptr;