From dde50f0e22f74439e14e4ac40dbab49aba5d1ba0 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 19 Jun 2023 20:16:39 +0200 Subject: [PATCH] win: fix -Wpointer-to-int-cast warning --- src/win/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/fs.c b/src/win/fs.c index 9d0614f2..fc209c54 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -2063,7 +2063,7 @@ INLINE static int fs__fstat_handle(int fd, HANDLE handle, uv_stat_t* statbuf) { statbuf->st_mode = file_type == UV_TTY ? _S_IFCHR : _S_IFIFO; statbuf->st_nlink = 1; statbuf->st_rdev = (file_type == UV_TTY ? FILE_DEVICE_CONSOLE : FILE_DEVICE_NAMED_PIPE) << 16; - statbuf->st_ino = (uint64_t) handle; + statbuf->st_ino = (uintptr_t) handle; return 0; /* If file type is unknown it is an error. */