Remove desitination type param from cast builtins

This commit is contained in:
antlilja 2023-06-26 00:42:09 +02:00 committed by Felix Queißner
parent d13ba61370
commit d070896807

View File

@ -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,