Skip to content

Commit

Permalink
Use TRASH field of binding for ZEROTRASH
Browse files Browse the repository at this point in the history
Corrects error in release builds.
  • Loading branch information
hostilefork committed Sep 11, 2023
1 parent 45080dc commit 96c3d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/datatypes/sys-blank.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ inline static Value(*) Init_Blank_Untracked(Cell(*) out, Byte quote_byte) {
);

#ifdef ZERO_UNUSED_CELL_FIELDS
mutable_BINDING(out) = ZEROTRASH; // not Is_Bindable()
EXTRA(Any, out).trash = ZEROTRASH; // not Is_Bindable()
PAYLOAD(Any, out).first.trash = ZEROTRASH;
PAYLOAD(Any, out).second.trash = ZEROTRASH;
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/include/sys-void.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ inline static REBVAL *Init_Void_Untracked(Cell(*) out, Byte quote_byte) {
);

#ifdef ZERO_UNUSED_CELL_FIELDS
mutable_BINDING(out) = ZEROTRASH; // not Is_Bindable()
EXTRA(Any, out).trash = ZEROTRASH; // not Is_Bindable()
PAYLOAD(Any, out).first.trash = ZEROTRASH;
PAYLOAD(Any, out).second.trash = ZEROTRASH;
#endif
Expand Down

0 comments on commit 96c3d39

Please sign in to comment.