Added int cast so pathscale recognizes min().