Files
opencv-MIRROR/modules/python
wzy712 6fed49ef20 core: prefer int64_t over bool in FileStorage::write
The Python binding tries FileStorage::write() overloads in declaration
order. pyopencv_to(bool&) accepts any integer scalar, so values outside
the int32 range were consumed by the bool overload and stored as `true`
in YAML, and as 1 in XML/JSON, even though write(int64_t) is exposed and
all three formats support 64-bit integers.

Declare the int64_t overload before bool.

Add a Python test that writes int32/int64 boundary values and checks the
serialized text for YAML, XML and JSON.
2026-11-25 01:33:14 +08:00
..
2026-10-23 14:28:38 +03:00