mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Fix usages of std::min and std::max to be windows safe (#4887)
This commit is contained in:
@@ -99,7 +99,7 @@ T RKDP(F&& f, T x, U u, units::second_t dt, double maxError = 1e-6) {
|
||||
while (dtElapsed < dt.value()) {
|
||||
do {
|
||||
// Only allow us to advance up to the dt remaining
|
||||
h = std::min(h, dt.value() - dtElapsed);
|
||||
h = (std::min)(h, dt.value() - dtElapsed);
|
||||
|
||||
// clang-format off
|
||||
T k1 = f(x, u);
|
||||
|
||||
Reference in New Issue
Block a user