Skip to content

Commit

Permalink
fix: correct an error preventing the creation of unfrozen Bytes objec…
Browse files Browse the repository at this point in the history
…ts in certain cases
  • Loading branch information
jacopodl committed Jan 16, 2024
1 parent 74b7e42 commit c306ef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions argon/vm/datatype/bufview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ SharedBuffer *SharedBufferNew(ArSize cap, bool frozen) {
if (shared != nullptr) {
shared->counter = 1;

shared->flags = SharedBufferFlags::NONE;
if (frozen)
shared->flags = SharedBufferFlags::FROZEN;

Expand Down
1 change: 1 addition & 0 deletions argon/vm/datatype/bufview.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace argon::vm::datatype {
enum class SharedBufferFlags : unsigned int {
NONE,
FROZEN
};

Expand Down

0 comments on commit c306ef3

Please sign in to comment.