Fix #11748: Incorrect clamping of negative service interval values (#11749)

(cherry picked from commit f7bd70baec)
This commit is contained in:
Loïc Guilloux
2024-01-10 16:23:36 +01:00
committed by Jonathan G Rennison
parent de91c56ed5
commit 251008663b
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ static const uint DEF_SERVINT_PERCENT = 50;
static const uint MIN_SERVINT_PERCENT = 5;
static const uint MAX_SERVINT_PERCENT = 90;
uint16_t GetServiceIntervalClamped(uint interval, bool ispercent);
uint16_t GetServiceIntervalClamped(int interval, bool ispercent);
bool OrderConditionCompare(OrderConditionComparator occ, int variable, int value);
const char *GetOrderTypeName(OrderType order_type);