)]}'
{
  "commit": "6ded13221aa56437092eec073fa7e1afa12e445c",
  "tree": "2707de1e538dc6840e6ca240b2aacca9a87386c6",
  "parents": [
    "96a90acf8b68da48cc744af8d22a4dd8f6d725b8"
  ],
  "author": {
    "name": "August",
    "email": "git@reb0.org",
    "time": "Tue Nov 24 04:13:07 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 24 04:13:07 2026 +0000"
  },
  "message": "[Impeller] Fix Windows build with MSVC 14.52: std::modf is [[nodiscard]] (#193413)\n\nThe MSVC 14.52 STL declares std::modf as `[[nodiscard]]` (14.51 does\nnot). RoundToHalf in line_geometry.cc called std::modf only for its\nintegral part output parameter and discarded the return value, which\nbreaks the Windows engine build because warnings are treated as errors:\n\n../../flutter/impeller/entity/geometry/line_geometry.cc(86,3): error:\nignoring return value of function declared with \u0027nodiscard\u0027 attribute\n[-Werror,-Wunused-result]\n       86 |   std::modf(x, \u0026whole);\n          |   ^~~~~~~~~~~~~~~~~~~~\n\nUse std::trunc instead, which returns the integral part directly and\nyields the same value as std::modf\u0027s integral part for all inputs,\nincluding infinities and NaN.\n\nRelated to #96138.\n\nFor transparency: This PR was partially created with help of Claude.\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant in-code documentation (doc comments with\n`///`).\n- [x] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\nIf this change needs to override an active code freeze, provide a\ncomment explaining why. The code freeze workflow can be overridden by\ncode reviewers. See pinned issues for any active code freezes with\nguidance.\n\n**Note**: The Flutter team is currently trialing the use of [Gemini Code\nAssist for\nGitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).\nComments from the `gemini-code-assist` bot should not be taken as\nauthoritative feedback from the Flutter team. If you find its comments\nuseful you can update your code accordingly, but if you are unsure or\ndisagree with the feedback, please feel free to wait for a Flutter team\nmember\u0027s review for guidance on which automated comments should be\naddressed.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[flutter/website]: https://github.com/flutter/website\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md\n\n---------\n\nCo-authored-by: gemini-code-assist[bot] \u003c176961590+gemini-code-assist[bot]@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3664645b38f5400d095c000202dacc9f65fb2781",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/impeller/entity/geometry/line_geometry.cc",
      "new_id": "5305ee2dffbeb758c171e14ad03b18e205919dd4",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/impeller/entity/geometry/line_geometry.cc"
    }
  ]
}
