)]}'
{
  "commit": "7980e3d5d89a389035793924f96682e94c867860",
  "tree": "3d8b9fc99f27356665dc0d6df5534272cbbd6aca",
  "parents": [
    "c4d56700172fb1ece8e83fe4c45e1670b6df9546"
  ],
  "author": {
    "name": "apaseltiner",
    "email": "apaseltiner@google.com",
    "time": "Tue Oct 27 11:57:43 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Oct 27 11:58:26 2026 -0700"
  },
  "message": "Round Structured Headers decimal ties to even across all in-range values.\n\nPreviously, decimal serialization attempted to detect ties using `fmod(decimal_value, 0.002) \u003d\u003d 0.0005` (or `0.0015`) before falling back to `round(decimal_value * 1000.0) / 1000.0`. Because `0.002` is not exactly representable in binary floating point, `fmod` accumulated representation error for larger inputs and missed ties beyond `0.0025`, falling through to `round(decimal_value * 1000.0)` (which both suffered from `decimal_value * 1000.0` landing slightly off the half-integer midpoint for values like `0.5015` and rounded ties away from zero rather than to even for values like `2.0005`).\n\nInstead, when scaling a decimal by `1000.0`, check whether the candidate half-integer midpoint (`std::floor(scaled) + 0.5`) divides by `1000.0` back to the input `double`, snapping to the exact midpoint before `std::nearbyint` rounds ties to even.\n\nSee https://github.com/httpwg/structured-field-tests/issues/113 and https://github.com/undef1nd/sfv/pull/261.\n\nPiperOrigin-RevId: 1008274785\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d31ebee681dc63efc3e22757a1076a68bc352cb4",
      "old_mode": 33188,
      "old_path": "quiche/common/structured_headers.cc",
      "new_id": "fe95910283720152708bad84fdb55bc0c635ea16",
      "new_mode": 33188,
      "new_path": "quiche/common/structured_headers.cc"
    },
    {
      "type": "modify",
      "old_id": "28ca411fdec04e331d6f869f1125120da0b0c91b",
      "old_mode": 33188,
      "old_path": "quiche/common/structured_headers_generated_test.cc",
      "new_id": "348ea10089ef3ac41d3a2d815954e1512a9fd578",
      "new_mode": 33188,
      "new_path": "quiche/common/structured_headers_generated_test.cc"
    },
    {
      "type": "modify",
      "old_id": "7dd243b42e272eacb4c6fd587dc0aef0044697ca",
      "old_mode": 33188,
      "old_path": "quiche/common/structured_headers_test.cc",
      "new_id": "37ed6579f91163761851a5bd4edf9ca303112d37",
      "new_mode": 33188,
      "new_path": "quiche/common/structured_headers_test.cc"
    }
  ]
}
