From c8ecce9e54e4a5c07a5fd177095a50f962fbf994 Mon Sep 17 00:00:00 2001 From: David Wiesen Date: Mon, 6 Oct 2025 14:17:57 -0700 Subject: [PATCH] fix pointer comparison warning. --- codex-rs/tui/src/terminal_palette.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/tui/src/terminal_palette.rs b/codex-rs/tui/src/terminal_palette.rs index 22ce86f2b4..914fa140b3 100644 --- a/codex-rs/tui/src/terminal_palette.rs +++ b/codex-rs/tui/src/terminal_palette.rs @@ -557,7 +557,7 @@ mod imp { fn query_console_snapshot() -> Option { unsafe { let handle = GetStdHandle(STD_OUTPUT_HANDLE); - if handle.is_null() || handle == INVALID_HANDLE_VALUE as HANDLE { + if handle.is_null() || std::ptr::eq(handle, INVALID_HANDLE_VALUE) as HANDLE { return None; }