mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-27 15:38:01 +00:00
jsontx_exact: change the double boundary check from exclusive to inclusive (d > max -> d >= max, d < -max -> d <= -max). Doubles cannot uniquely represent odd integers at or above 2^53, so values like 2^53+1 silently round to 2^53, corrupting the canonical form. The safe ceiling for round-trip-exact integers is 2^53 - 1. tests: add coverage for the 2^53 boundary (positive and negative sides, and the silent rounding case).