mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix for VC++11
This commit is contained in:
parent
5597dcec9b
commit
8b80b159c8
148 changed files with 336 additions and 181 deletions
|
@ -20,7 +20,7 @@ namespace sprout {
|
|||
template<typename IntType, typename CStrIterator>
|
||||
inline SPROUT_CONSTEXPR IntType
|
||||
str_to_int_impl_1(CStrIterator str, int base, IntType val, IntType x, bool negative) {
|
||||
return x == static_cast<IntType>(-1) ? (negative ? -val : val)
|
||||
return x == static_cast<IntType>(-1) ? (negative ? -1 * val : val)
|
||||
: val > (std::numeric_limits<IntType>::max() - x - (negative ? 1 : 0)) / base
|
||||
? (negative ? std::numeric_limits<IntType>::min() : std::numeric_limits<IntType>::max())
|
||||
: sprout::detail::str_to_int_impl_1<IntType>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue