Browse Source

fix: cars i64 instead of int

samwega 1 week ago
parent
commit
9e9d41ddfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os_linux.odin

+ 1 - 1
core/os/os_linux.odin

@@ -908,7 +908,7 @@ _dup :: proc(fd: Handle) -> (Handle, Error) {
 @(require_results)
 @(require_results)
 absolute_path_from_handle :: proc(fd: Handle) -> (string, Error) {
 absolute_path_from_handle :: proc(fd: Handle) -> (string, Error) {
 	buf : [256]byte
 	buf : [256]byte
-	fd_str := strconv.write_int( buf[:], cast(int)fd, 10 )
+	fd_str := strconv.write_int( buf[:], cast(i64)fd, 10 )
 
 
 	procfs_path := strings.concatenate( []string{ "/proc/self/fd/", fd_str } )
 	procfs_path := strings.concatenate( []string{ "/proc/self/fd/", fd_str } )
 	defer delete(procfs_path)
 	defer delete(procfs_path)