From 26a507877efa4541085f27a25f2504ee8d235668 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Tue, 28 Aug 2018 16:39:00 +0200 Subject: [PATCH] test: fix warnings in test-fs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/libuv/libuv/pull/1962 Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Colin Ihrig --- test/test-fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-fs.c b/test/test-fs.c index 9cf6987f..e5274a35 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -3590,7 +3590,7 @@ TEST_IMPL(fs_fchmod_archive_readonly) { NULL); ASSERT(r >= 0); ASSERT(req.result >= 0); - file = req.result; + file = (uv_os_fd_t) req.result; uv_fs_req_cleanup(&req); r = uv_fs_close(NULL, &req, file, NULL); ASSERT(r == 0); @@ -3603,7 +3603,7 @@ TEST_IMPL(fs_fchmod_archive_readonly) { r = uv_fs_open(NULL, &req, "test_file", O_RDONLY, 0, NULL); ASSERT(r >= 0); ASSERT(req.result >= 0); - file = req.result; + file = (uv_os_fd_t) req.result; uv_fs_req_cleanup(&req); r = uv_fs_fchmod(NULL, &req, file, S_IWUSR, NULL); ASSERT(r == 0);