From 9ea48c7298f7236e2d1dc339f1285b8cfbf59aec Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Mon, 22 Apr 2024 22:05:36 +0400 Subject: [PATCH] Fix win32 compilation. --- src/hz/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hz/fs.h b/src/hz/fs.h index 3f6e767..b747e51 100644 --- a/src/hz/fs.h +++ b/src/hz/fs.h @@ -498,7 +498,7 @@ inline bool fs_path_is_writable(const fs::path& path, std::error_code& ec) std::error_code ignored_ec; // ignore this error const bool is_directory = fs::is_directory(path, ignored_ec); - const bool path_exists = fs::exists(path, ec); + bool path_exists = fs::exists(path, ec); if (ec) { return false; }