Make template type explicit for std::min calls

Fixes build on macOS, which complained about the mismatched argument
types.
2 files changed