Skip to content

Commit

Permalink
Fix return type for MVM_dir_chdir_C_string
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Apr 18, 2017
1 parent 507b37b commit a2f6e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/io/dirops.c
Expand Up @@ -143,7 +143,7 @@ MVMString * MVM_dir_cwd(MVMThreadContext *tc) {

return MVM_string_utf8_c8_decode(tc, tc->instance->VMString, path, strlen(path));
}
char * MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring) {
int MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring) {
return uv_chdir(dirstring);
}
/* Change directory. */
Expand Down
2 changes: 1 addition & 1 deletion src/io/dirops.h
Expand Up @@ -4,5 +4,5 @@ MVMObject * MVM_dir_open(MVMThreadContext *tc, MVMString *dirname);
MVMString * MVM_dir_read(MVMThreadContext *tc, MVMObject *oshandle);
void MVM_dir_close(MVMThreadContext *tc, MVMObject *oshandle);
MVMString * MVM_dir_cwd(MVMThreadContext *tc);
char * MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring);
int MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring);
void MVM_dir_chdir(MVMThreadContext *tc, MVMString *dir);

0 comments on commit a2f6e5d

Please sign in to comment.