Check for unneeded transmute with -vet-cast

This commit is contained in:
gingerBill committed 2024-06-29 12:02:31 +01:00
1 parent 704530497b
commit 4b71c47fd5
20 files changed
+82 -74

No files matched your search

+2 -2
View File
@@ -883,8 +883,8 @@ absolute_path_from_relative :: proc(rel: string) -> (path: string, err: Errno) {
}
defer _unix_free(path_ptr)
path_cstr := transmute(cstring)path_ptr
path = strings.clone( string(path_cstr) )
path_cstr := cast(cstring)path_ptr
path = strings.clone(string(path_cstr))
return path, ERROR_NONE
}