test: fix signed/unsigned compiler warning
This commit is contained in:
parent
a0bc4cca74
commit
488b43ecc5
@ -1391,7 +1391,8 @@ TEST_IMPL(fs_symlink_dir) {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ASSERT(((struct stat*)req.ptr)->st_size == strlen(test_dir + 4));
|
ASSERT(((struct stat*)req.ptr)->st_size == strlen(test_dir + 4));
|
||||||
#else
|
#else
|
||||||
ASSERT(((struct stat*)req.ptr)->st_size == strlen(test_dir));
|
/* st_size has type off_t. Cast to avoid signed/unsigned warnings. */
|
||||||
|
ASSERT((size_t) ((struct stat*)req.ptr)->st_size == strlen(test_dir));
|
||||||
#endif
|
#endif
|
||||||
uv_fs_req_cleanup(&req);
|
uv_fs_req_cleanup(&req);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user