Merge branch 'master' of https://github.com/gingerBill/Odin
This commit is contained in:
commit
33aad3a8ce
3 files changed
+48
-97
No files matched your search
+1
-1
@@ -190,7 +190,7 @@ read :: proc(fd: Handle, data: []u8) -> (int, Errno) {
|
||||
seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Errno) {
|
||||
assert(fd != -1);
|
||||
|
||||
final_offset := i64(unix_lseek(fd, offset, whence));
|
||||
final_offset := i64(unix_lseek(fd, int(offset), whence));
|
||||
if(final_offset == -1) {
|
||||
return 0, 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user