Created by: wangxicoding
Type of std::min function's arguments are different and then this will fail in the Windows compiler. This PR fixes it.