Skip to content

Commit 7dc5078

Browse files
linesightclaude
andcommitted
Fix util_mac.mm: explicit cast void* -> NSView* for ARM64
cef_window_handle_t changed from a #define alias to typedef void*, making the implicit void* -> NSView* conversion a compile error. Use the CAST_CEF_WINDOW_HANDLE_TO_NSVIEW macro (ARC-aware). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3115614 commit 7dc5078

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client_handler/util_mac.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void MacShutdown() {
8585
}
8686

8787
void MacSetWindowTitle(CefRefPtr<CefBrowser> browser, char* title) {
88-
NSView* view = browser->GetHost()->GetWindowHandle();
88+
NSView* view = CAST_CEF_WINDOW_HANDLE_TO_NSVIEW(browser->GetHost()->GetWindowHandle());
8989
NSString* nstitle = [NSString stringWithFormat:@"%s" , title];
9090
view.window.title = nstitle;
9191
}

0 commit comments

Comments
 (0)