From 511f132f179efa5272b5e3561d8bfdd21ca4c397 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 1 Apr 2020 18:41:03 +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 2794a753..5a76f67c 100644 --- a/src/compile.c +++ b/src/compile.c @@ -77,7 +77,7 @@ ANN static int is_reg(const m_str path) { } #else ANN static m_bool is_reg(const m_str path) { - cionst DWORD dw = GetFileAttributes(path); + const DWORD dw = GetFileAttributes(path); return !(dw == INVALID_FILE_ATTRIBUTES || dw & FILE_ATTRIBUTE_DIRECTORY); } -- 2.43.0