mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Fix usages of std::min and std::max to be windows safe (#4887)
This commit is contained in:
@@ -122,7 +122,7 @@ void HALSIM_StepTiming(uint64_t delta) {
|
||||
int32_t status = 0;
|
||||
uint64_t curTime = HAL_GetFPGATime(&status);
|
||||
uint64_t nextTimeout = HALSIM_GetNextNotifierTimeout();
|
||||
uint64_t step = std::min(delta, nextTimeout - curTime);
|
||||
uint64_t step = (std::min)(delta, nextTimeout - curTime);
|
||||
|
||||
StepTiming(step);
|
||||
delta -= step;
|
||||
|
||||
Reference in New Issue
Block a user