Skip to content

Commit

Permalink
Remove SIZE_T
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jul 15, 2024
1 parent cd51de1 commit 8a25371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions std/src/sys/pal/windows/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn init_or_get_process_heap() -> c::HANDLE {
extern "C" fn process_heap_init_and_alloc(
_heap: MaybeUninit<c::HANDLE>, // We pass this argument to match the ABI of `HeapAlloc`
flags: c::DWORD,
dwBytes: c::SIZE_T,
dwBytes: usize,
) -> c::LPVOID {
let heap = init_or_get_process_heap();
if core::intrinsics::unlikely(heap.is_null()) {
Expand All @@ -128,7 +128,7 @@ extern "C" fn process_heap_init_and_alloc(
fn process_heap_alloc(
_heap: MaybeUninit<c::HANDLE>, // We pass this argument to match the ABI of `HeapAlloc`,
flags: c::DWORD,
dwBytes: c::SIZE_T,
dwBytes: usize,
) -> c::LPVOID {
let heap = HEAP.load(Ordering::Relaxed);
if core::intrinsics::likely(!heap.is_null()) {
Expand Down
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 @@ -19,7 +19,6 @@ pub use windows_sys::*;

pub type DWORD = c_ulong;
pub type WCHAR = u16;
pub type SIZE_T = usize;
pub type ULONG = c_ulong;

pub type LPCVOID = *const c_void;
Expand Down

0 comments on commit 8a25371

Please sign in to comment.