Compare commits

..

3 Commits

Author SHA1 Message Date
51c795efb9 This commit was manufactured by cvs2svn to create tag
'Version_1_20_1'.

[SVN r8548]
2001-01-10 18:29:12 +00:00
2c52692f8d regex file names fixed to bring them under 32 characters (for Mac compatibility)
[SVN r8536]
2001-01-09 12:42:39 +00:00
0b582e974f Kill some warnings about converting negative numbers to unsigned types
[SVN r8486]
2000-12-21 17:17:45 +00:00
5 changed files with 2 additions and 2 deletions

View File

@ -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;