]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: Fix bootstrap on 32b Darwin hosts.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 15 Feb 2026 08:59:33 +0000 (08:59 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 15 Feb 2026 20:12:01 +0000 (20:12 +0000)
commitdfc93622ad910dd509637c6db4996a6aadc166fa
treeb3d96fa0410656a56dc796c9a770745bb1f8e762
parent8cf191e93763ee9c00b5bed4092a426c7761362b
diagnostics: Fix bootstrap on 32b Darwin hosts.

The change in r16-7507 misses a cast on the value to pp_scalar which
leads to a bootstrap fail on 32b hosts where size_t has a different
declaration from the value.  Fixed by applying the fmt_size_t cast.

gcc/ChangeLog:

* json.cc (pointer::token::print): Cast the value to pp_scalar
with (fmt_size_t).

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/json.cc