Skip to content

Commit

Permalink
fix LRESULT and LPARAM typedefs
Browse files Browse the repository at this point in the history
LRESULT and LPARAM are currently typedef'd as ?*c_void, however, they are supposed to be typedef'd as LONG_PTR which is equivalent to isize in Zig.
  • Loading branch information
marler8997 authored and andrewrk committed Jan 7, 2021
1 parent 5ee0431 commit f1ef0a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/os/windows/bits.zig
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub const HLOCAL = HANDLE;
pub const LANGID = c_ushort;

pub const WPARAM = usize;
pub const LPARAM = ?*c_void;
pub const LRESULT = ?*c_void;
pub const LPARAM = LONG_PTR;
pub const LRESULT = LONG_PTR;

pub const va_list = *opaque {};

Expand Down

0 comments on commit f1ef0a8

Please sign in to comment.