mirror of
https://github.com/boostorg/regex.git
synced 2025-07-03 07:36:33 +02:00
Compare commits
3 Commits
boost-1.19
...
boost-1.20
Author | SHA1 | Date | |
---|---|---|---|
51c795efb9 | |||
2c52692f8d | |||
0b582e974f |
@ -701,7 +701,7 @@ int BOOST_RE_CALL c_regex_traits<char>::toi(const char*& first, const char* last
|
||||
// if radix is less than zero, then restrict
|
||||
// return value to charT. NB assumes sizeof(charT) <= sizeof(int)
|
||||
radix *= -1;
|
||||
maxval = 1 << (sizeof(*first) * CHAR_BIT - 1);
|
||||
maxval = 1u << (sizeof(*first) * CHAR_BIT - 1);
|
||||
maxval /= radix;
|
||||
maxval *= 2;
|
||||
maxval -= 1;
|
||||
@ -954,7 +954,7 @@ int BOOST_RE_CALL c_regex_traits<wchar_t>::toi(const wchar_t*& first, const wcha
|
||||
// if radix is less than zero, then restrict
|
||||
// return value to charT. NB assumes sizeof(charT) <= sizeof(int)
|
||||
radix *= -1;
|
||||
maxval = 1 << (sizeof(*first) * CHAR_BIT - 1);
|
||||
maxval = 1u << (sizeof(*first) * CHAR_BIT - 1);
|
||||
maxval /= radix;
|
||||
maxval *= 2;
|
||||
maxval -= 1;
|
||||
|
Reference in New Issue
Block a user