From 8af28d3fa5bd36466e290cf4513398977a87e12e Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 30 Mar 2019 13:05:07 -0400 Subject: [PATCH] Windows bump. --- src/core/os.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/os.c b/src/core/os.c index 9580a0c8..8b88f464 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -395,8 +395,8 @@ static const uint8_t *janet_decode_permissions(unsigned short m) { static const uint8_t *janet_decode_mode(unsigned short m) { const char *str = "other"; - if (_S_ISREG(m)) str = "file"; - else if (_S_ISDIR(m)) str = "directory"; + if (S_ISREG(m)) str = "file"; + else if (S_ISDIR(m)) str = "directory"; return janet_ckeyword(str); } #else @@ -480,7 +480,7 @@ static Janet os_dir(int32_t argc, Janet *argv) { intptr_t res = _findfirst(pattern, &afile); while (res != -1) { janet_array_push(paths, janet_cstringv(afile.name)); - res = _findnext(pattern, &afile); + res = _findnext(res, &afile); } _findclose(res); #else