Skip to content

Commit

Permalink
Fix ToFlexBuffer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Oct 5, 2023
1 parent e5cc3dd commit a9f537c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/src/vmdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ void LObject::ToFlexBuffer(ToFlexBufferContext &fbc) {
fbc.seen_objects.insert(this);
} else {
fbc.cycle_hit = TypeName(fbc.vm);
if (!fbc.cycle_hit_value.type_ == flexbuffers::FBT_NULL) {
if (fbc.cycle_hit_value.type_ == flexbuffers::FBT_NULL) {
fbc.builder.String("(dup_ref)");
fbc.cycle_hit_value = fbc.builder.LastValue();
} else {
Expand All @@ -638,7 +638,7 @@ void LObject::ToFlexBuffer(ToFlexBufferContext &fbc) {
}
if (fbc.cur_depth >= fbc.max_depth) {
fbc.max_depth_hit = TypeName(fbc.vm);
if (!fbc.max_depth_hit_value.type_ == flexbuffers::FBT_NULL) {
if (fbc.max_depth_hit_value.type_ == flexbuffers::FBT_NULL) {
fbc.builder.String("(max_depth)");
fbc.max_depth_hit_value = fbc.builder.LastValue();
} else {
Expand Down

0 comments on commit a9f537c

Please sign in to comment.