Fix usages of std::min and std::max to be windows safe (#4887)

This commit is contained in:
Thad House
2022-12-31 12:00:45 -08:00
committed by GitHub
parent c11bd2720f
commit b632b288a3
6 changed files with 9 additions and 9 deletions

View File

@@ -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;