mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
fix pointer comparison warning.
This commit is contained in:
@@ -557,7 +557,7 @@ mod imp {
|
||||
fn query_console_snapshot() -> Option<ConsoleSnapshot> {
|
||||
unsafe {
|
||||
let handle = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
if handle.is_null() || std::ptr::eq(handle, INVALID_HANDLE_VALUE) as HANDLE {
|
||||
if handle.is_null() || std::ptr::eq(handle, INVALID_HANDLE_VALUE) {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user