Fix issues with OSX
This commit is contained in:
1 parent
d7bd3f8402
commit
a09d5959ef
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