From 073768fec3bb9aff855ecffba796fc406ba0eec4 Mon Sep 17 00:00:00 2001 From: Nik Date: Thu, 15 Sep 2022 11:39:17 +0200 Subject: [PATCH] includes/std: Fix passing std::file::Mode enum to builtin function --- includes/std/file.pat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/std/file.pat b/includes/std/file.pat index 18b9ceb..7197ace 100644 --- a/includes/std/file.pat +++ b/includes/std/file.pat @@ -12,7 +12,7 @@ namespace std::file { fn open(str path, Mode mode) { - return builtin::std::file::open(path, mode); + return builtin::std::file::open(path, u32(mode)); }; fn close(Handle handle) {