Skip to content

Commit

Permalink
explicitly cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Mar 8, 2022
1 parent a615440 commit b19b241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ extern "C" SEXP fs_exists_(SEXP path_sxp, SEXP name_sxp) {
uv_fs_t req;
const char* p = CHAR(STRING_ELT(path_sxp, i));
int res = uv_fs_stat(uv_default_loop(), &req, p, NULL);
LOGICAL(out)[i] = res == 0;
LOGICAL(out)[i] = static_cast<int>(res == 0);
uv_fs_req_cleanup(&req);
}

Expand Down

0 comments on commit b19b241

Please sign in to comment.