commit | 110b8bf57e49cec5a714571ab950991c30fc9339 | [log] [tgz] |
---|---|---|
author | Sean Hunt <scshunt@csclub.uwaterloo.ca> | Fri Jul 29 23:31:58 2011 +0000 |
committer | Sean Hunt <scshunt@csclub.uwaterloo.ca> | Fri Jul 29 23:31:58 2011 +0000 |
tree | 31bb34e4fe5c26311f4f51a40adb6b7b9bf6ea27 | |
parent | affd9e5d4396fe0da3612f84cc6465665cb68566 [diff] |
Explicitly invoke the size_type specialization of max and min. This avoids bugs where, when the allocator's size_type was smaller than int, the multiplication or division would cause integral promotions and, with two different integer types as arguments, deduction of the template arguments would fail. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@136540 91177308-0d34-0410-b5e6-96231b3b80d8