Skip to content

Commit

Permalink
Setting mode member of Filestream class
Browse files Browse the repository at this point in the history
We have method mode() which returns open mode of current file but we never set mode variable.Thus it always return None.
  • Loading branch information
OptionalAssistant committed Mar 28, 2024
1 parent a741fa1 commit 26afc59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zasm/src/core/filestream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ namespace zasm
_state->length = offset();
seek(0, SeekType::Begin);

_state->mode = mode;
return Error::None;
}

Expand Down

0 comments on commit 26afc59

Please sign in to comment.