GP-4102 Fix infinite loop thru RulePiecePathology

This commit is contained in:
caheckman 2023-12-05 02:02:58 +00:00
parent 9b7efcb8e5
commit 5a7ad72476

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