Fix MSVC build warning.

This commit is contained in:
Calvin Rose
2020-03-14 12:02:31 -05:00
parent c074615550
commit 4a05b4556e
+2 -1
View File
@@ -929,10 +929,11 @@ static Janet os_stat(int32_t argc, Janet *argv) {
}
/* Build result */
struct stat st;
#ifdef JANET_WINDOWS
struct _stat st;
int res = _stat(path, &st);
#else
struct stat st;
int res = stat(path, &st);
#endif
if (-1 == res) {