Skip to content

Commit

Permalink
Remove UINT
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jul 15, 2024
1 parent 18adcef commit 0b22ecb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion std/src/sys/pal/windows/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ mod windows_sys;
pub use windows_sys::*;

pub type DWORD = c_ulong;
pub type UINT = c_uint;
pub type WCHAR = u16;
pub type USHORT = c_ushort;
pub type SIZE_T = usize;
Expand Down
2 changes: 1 addition & 1 deletion std/src/sys/pal/windows/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ pub fn home_dir() -> Option<PathBuf> {
}

pub fn exit(code: i32) -> ! {
unsafe { c::ExitProcess(code as c::UINT) }
unsafe { c::ExitProcess(code as u32) }
}

pub fn getpid() -> u32 {
Expand Down

0 comments on commit 0b22ecb

Please sign in to comment.