refactor: clarify diagnostics and adopt ptrcast inference
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ writer proc(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 }
|
||||
if (c.__error()?^ != c.EINTR) return .open_failed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user