mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 05:20:28 +00:00
fix: cars i64 instead of int
This commit is contained in:
@@ -908,7 +908,7 @@ _dup :: proc(fd: Handle) -> (Handle, Error) {
|
||||
@(require_results)
|
||||
absolute_path_from_handle :: proc(fd: Handle) -> (string, Error) {
|
||||
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 } )
|
||||
defer delete(procfs_path)
|
||||
|
||||
Reference in New Issue
Block a user