refactor: clarify diagnostics and adopt ptrcast inference

This commit is contained in:
2026-09-19 23:16:18 +02:00
parent 8bb539359b
commit 438f660e76
7 changed files with 27 additions and 28 deletions
+1 -1
View File
@@ -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
}