Remove desitination type param from cast builtins
This commit is contained in:
parent
d13ba61370
commit
d070896807
|
@ -70,7 +70,7 @@ pub fn getPath(allocator: std.mem.Allocator, folder: KnownFolder) Error!?[]const
|
|||
&dir_path_ptr,
|
||||
)) {
|
||||
std.os.windows.S_OK => {
|
||||
defer std.os.windows.ole32.CoTaskMemFree(@ptrCast(*anyopaque, dir_path_ptr));
|
||||
defer std.os.windows.ole32.CoTaskMemFree(@ptrCast(dir_path_ptr));
|
||||
const global_dir = std.unicode.utf16leToUtf8Alloc(allocator, std.mem.span(dir_path_ptr)) catch |err| switch (err) {
|
||||
error.UnexpectedSecondSurrogateHalf => return null,
|
||||
error.ExpectedSecondSurrogateHalf => return null,
|
||||
|
|
Loading…
Reference in New Issue
Block a user