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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user