mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 15:16:49 +02:00
- VS2012: build/tests
- JSON: style and exceptions catch by ref fix - NumberParser: case-insensitive hex parsing - Dynamic::Var: const std::string& cast operator specialization (coaxing std::string ctor) - LocalDateTime: strftime fix (buffer too small for full tz string, use %Z instead of %z - makes no difference on windows but is more portable) - small buildwin.cmd vsvars32.bat call fix
This commit is contained in:
@@ -263,7 +263,7 @@ private:
|
||||
T n = 0;
|
||||
for (; it != end; ++it)
|
||||
{
|
||||
if ((*it >= '0' && *it <= '9') || (*it >= 'A' && *it <= 'F'))
|
||||
if ((*it >= '0' && *it <= '9') || (*it >= 'A' && *it <= 'F') || (*it >= 'a' && *it <= 'f'))
|
||||
{
|
||||
if (n > (std::numeric_limits<T>::max() / base))
|
||||
return false;
|
||||
@@ -272,6 +272,8 @@ private:
|
||||
n = n * base + *it - '0';
|
||||
else if (*it >= 'A' && *it <= 'F')
|
||||
n = n * base + *it - 'A' + 10;
|
||||
else if (*it >= 'a' && *it <= 'f')
|
||||
n = n * base + *it - 'a' + 10;
|
||||
}
|
||||
else break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user