From dc1f8413036deb753638be81a2cca77a96928285 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 1 Apr 2020 18:40:42 +0200 Subject: [PATCH] :art: Fix is_reg (Windows) --- src/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.c b/src/compile.c index a4c85682..2794a753 100644 --- a/src/compile.c +++ b/src/compile.c @@ -76,7 +76,7 @@ ANN static int is_reg(const m_str path) { return S_ISREG(s.st_mode); } #else -ANN static bool is_reg(const m_str path) { +ANN static m_bool is_reg(const m_str path) { cionst DWORD dw = GetFileAttributes(path); return !(dw == INVALID_FILE_ATTRIBUTES || dw & FILE_ATTRIBUTE_DIRECTORY); -- 2.43.0