feat: infer complete ptrcast target types
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ writer func(file File) Writer {
|
||||
.read_write: flags = c.O_RDWR
|
||||
}
|
||||
while true {
|
||||
fd c_int :: c.open(ptrcast!(c_char, path.ptr), flags)
|
||||
fd c_int :: c.open(ptrcast!(path.ptr), flags)
|
||||
if fd >= 0 {
|
||||
return Handle {file_desc = fd}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user