Permalink
Browse files

test: fix signed/unsigned comparison warnings

  • Loading branch information...
1 parent 53a2c9a commit 436132062038e1b14d20a3869483f8ef0f1ce47c @bnoordhuis bnoordhuis committed Dec 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test-fs.c
View
@@ -104,7 +104,7 @@ static char buf[32];
static char test_buf[] = "test-buffer\n";
-void check_permission(const char* filename, int mode) {
+void check_permission(const char* filename, unsigned mode) {
int r;
uv_fs_t req;
struct stat* s;
@@ -1391,7 +1391,7 @@ TEST_IMPL(fs_symlink_dir) {
#ifdef _WIN32
ASSERT(((struct stat*)req.ptr)->st_size == strlen(test_dir + 4));
#else
- ASSERT(((struct stat*)req.ptr)->st_size == strlen(test_dir));
+ ASSERT(((struct stat*)req.ptr)->st_size == (int) strlen(test_dir));
#endif
uv_fs_req_cleanup(&req);

0 comments on commit 4361320

Please sign in to comment.