Bug 283312
| Summary: | Fix pas_log formatting for size_t and uintptr_t variables | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ian Grunert <ian.grunert> |
| Component: | bmalloc | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ggaren, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Windows 11 | ||
| Bug Depends on: | |||
| Bug Blocks: | 283311 | ||
Ian Grunert
There's a number of errors when building on Windows due to pas_log, using %lu for size_t and uintptr_t types. For example:
pas_log("sharing index = %lu\n", index);
generates an error:
error: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned long long')
I think these should be using %zu instead.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ian Grunert
Pull request: https://github.com/WebKit/WebKit/pull/36902
EWS
Committed 286873@main (c39daa0ab4e3): <https://commits.webkit.org/286873@main>
Reviewed commits have been landed. Closing PR #36902 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/140299427>