refine cast

This commit is contained in:
Lightczx
2024-04-29 10:16:23 +08:00
parent 0420568e73
commit 98a9f5fec9

View File

@@ -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;
}