mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-21 00:46:47 +00:00
Merge branch 'master' of https://github.com/gingerBill/Odin
This commit is contained in:
+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