From 2a9302698c555c31af0f62230f964142f028d272 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Thu, 15 Oct 2026 14:35:32 -0700 Subject: [PATCH] Fix BOOL/bool mismatch in RCTInspectorNetworkReporter 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 --- .../Libraries/Network/RCTInspectorNetworkReporter.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Network/RCTInspectorNetworkReporter.mm b/packages/react-native/Libraries/Network/RCTInspectorNetworkReporter.mm index 400209ee8c32..baa3d1b0ae1d 100644 --- a/packages/react-native/Libraries/Network/RCTInspectorNetworkReporter.mm +++ b/packages/react-native/Libraries/Network/RCTInspectorNetworkReporter.mm @@ -148,7 +148,7 @@ + (void)reportResponseEnd:(NSString *)requestId encodedDataLength:(int)encodedDa #endif } -+ (void)reportRequestFailed:(NSString *)requestId cancelled:(bool)cancelled ++ (void)reportRequestFailed:(NSString *)requestId cancelled:(BOOL)cancelled { NetworkReporter::getInstance().reportRequestFailed(requestId.UTF8String, cancelled);