From 26afc598ec98a4aa533d9f8b9426c4ff0f5a245c Mon Sep 17 00:00:00 2001 From: OptionalAssistant <165001420+OptionalAssistant@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:39:40 +0200 Subject: [PATCH] Setting mode member of Filestream class We have method mode() which returns open mode of current file but we never set mode variable.Thus it always return None. --- src/zasm/src/core/filestream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zasm/src/core/filestream.cpp b/src/zasm/src/core/filestream.cpp index 1479867..6384dca 100644 --- a/src/zasm/src/core/filestream.cpp +++ b/src/zasm/src/core/filestream.cpp @@ -107,6 +107,7 @@ namespace zasm _state->length = offset(); seek(0, SeekType::Begin); + _state->mode = mode; return Error::None; }