src/os.cpp: os_file_read: return ErrorIsDir on case EISDIR;

master
kristopher tate 2018-11-18 15:15:17 +09:00
parent 085d049a08
commit 947cdafd91
No known key found for this signature in database
GPG Key ID: AEE8EEAD03E20816
1 changed files with 1 additions and 1 deletions

View File

@ -1976,7 +1976,7 @@ Error os_file_read(OsFile file, void *ptr, size_t *len) {
case EFAULT:
zig_unreachable();
case EISDIR:
zig_unreachable();
return ErrorIsDir;
default:
return ErrorFileSystem;
}