Skip to content

Commit 1c30af1

Browse files
committed
fix compilation
1 parent b2e1597 commit 1c30af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform_impl/windows/event_loop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ impl rwh_06::HasDisplayHandle for ActiveEventLoop {
534534

535535
impl rwh_06::HasWindowHandle for ActiveEventLoop {
536536
fn window_handle(&self) -> Result<rwh_06::WindowHandle<'_>, rwh_06::HandleError> {
537-
let hwnd = unsafe { std::num::NonZero::new_unchecked(self.thread_msg_target) };
537+
let hwnd = unsafe { std::num::NonZeroIsize::new_unchecked(self.thread_msg_target) };
538538
let win32 = rwh_06::Win32WindowHandle::new(hwnd);
539539
let raw = rwh_06::RawWindowHandle::Win32(win32);
540540
unsafe { Ok(rwh_06::WindowHandle::borrow_raw(raw)) }

0 commit comments

Comments
 (0)