mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
refine cast
This commit is contained in:
@@ -9,5 +9,5 @@ internal readonly struct HANDLE
|
||||
|
||||
public static unsafe implicit operator HANDLE(nint value) => *(HANDLE*)&value;
|
||||
|
||||
public static implicit operator HANDLE(BOOL value) => value.Value;
|
||||
public static unsafe implicit operator HANDLE(BOOL value) => *(int*)&value;
|
||||
}
|
||||
Reference in New Issue
Block a user