Merge remote-tracking branch 'origin/GP-4102_PiecePathologyLoop' into

Ghidra_11.0 (Closes #5934)
This commit is contained in:
ghidra1 2023-12-11 09:45:00 -05:00
commit 867ab256b0

View file

@ -5629,9 +5629,11 @@ bool FuncCallSpecs::setInputBytesConsumed(int4 slot,int4 val) const
while(inputConsume.size() <= slot) while(inputConsume.size() <= slot)
inputConsume.push_back(0); inputConsume.push_back(0);
int4 oldVal = inputConsume[slot]; int4 oldVal = inputConsume[slot];
if (oldVal == 0 || val < oldVal) if (oldVal == 0 || val < oldVal) { // Only let the value get smaller
inputConsume[slot] = val; inputConsume[slot] = val;
return (oldVal != val); return true;
}
return false;
} }
/// \brief Prepend any extra parameters if a paramshift is required /// \brief Prepend any extra parameters if a paramshift is required