Skip to content

Fix BOOL/bool mismatch in RCTInspectorNetworkReporter - #59119

Open
Saadnajmi wants to merge 1 commit into
react:mainfrom
Saadnajmi:fix-inspector-network-reporter-bool
Open

Saadnajmi wants to merge 1 commit into
react:mainfrom
Saadnajmi:fix-inspector-network-reporter-bool

Conversation

@Saadnajmi

@Saadnajmi Saadnajmi commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

RCTInspectorNetworkReporter.h declares +reportRequestFailed:cancelled: with a BOOL parameter, but the implementation takes bool. They're the same type on arm64, but on x86_64 macOS and x86_64 Mac Catalyst BOOL is signed char, so the definition doesn't match its declaration and clang warns with -Wmismatched-parameter-types.

This makes the implementation take BOOL, like the header.

Changelog:

[IOS] [FIXED] - Fix the cancelled parameter type of RCTInspectorNetworkReporter's reportRequestFailed:cancelled: to match its declaration

Test Plan:

Made the same change in React Native macOS 0.81, which has the same mismatch, and built it for x86_64 macOS with warnings as errors: -Wmismatched-parameter-types no longer fires.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 15, 2026
RCTInspectorNetworkReporter.h declares reportRequestFailed:cancelled: with a BOOL
parameter, but the implementation took bool. They're the same type on arm64, but on
x86_64 macOS and Mac Catalyst BOOL is signed char, so the definition didn't match its
declaration and clang warned with -Wmismatched-parameter-types.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 33ac4470-c1d2-43c0-92ee-8407909f0f6a
@Saadnajmi
Saadnajmi force-pushed the fix-inspector-network-reporter-bool branch from 58e104e to 2a93026 Compare October 15, 2026 21:35
@Saadnajmi
Saadnajmi marked this pull request as ready for review October 15, 2026 22:12
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 15, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant