1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #29368 from tonuonu:fix-filestorage-read-bigint-29363

core: FileStorage reads integers above INT_MAX into float/double without truncation 🧑‍💻🤖
This commit is contained in:
Alexander Smorkalov
2026-06-23 15:38:59 +03:00
committed by GitHub
2 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -2376,7 +2376,7 @@ FileNode::operator float() const
if( type == INT )
{
return (float)readInt(p);
return (float)readLong(p);
}
else if( type == REAL )
{
@@ -2397,7 +2397,7 @@ FileNode::operator double() const
if( type == INT )
{
return (double)readInt(p);
return (double)readLong(p);
}
else if( type == REAL )
{