core: read numbers with an upper-case exponent in FileStorage

This commit is contained in:
kevin9327
2026-10-21 21:22:09 +09:00
committed by Alexander Smorkalov
parent 3b79188917
commit 6cae2e3701
4 changed files with 30 additions and 3 deletions

View File

@@ -684,7 +684,7 @@ public:
ptr++;
CV_PERSISTENCE_CHECK_END_OF_BUFFER_BUG_CPP();
}
if (*ptr == '.' || *ptr == 'e')
if (*ptr == '.' || *ptr == 'e' || *ptr == 'E')
{
double fval = fs->strtod( beg, &ptr );
CV_PERSISTENCE_CHECK_END_OF_BUFFER_BUG_CPP();