Skip to content

Commit

Permalink
fix: fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Aug 27, 2023
1 parent 77bc365 commit d5bd52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win_dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ static DIR *opendir(const char *dirname)
size_t len = strlen(dirname)+1;
/* Convert directory name to wide-character string */

wchar_t *wname = malloc(sizeof(wchar_t)*len);
wchar_t *wname = (wchar_t *)malloc(sizeof(wchar_t)*len);
size_t n;
_locale_t loc = _create_locale(LC_CTYPE, ".utf-8");
errno_t error =
Expand Down

0 comments on commit d5bd52b

Please sign in to comment.