Skip to content

Commit

Permalink
In case value is of 0 length then Length == MetadataSize. (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepyadavmsft authored Jan 10, 2023
1 parent 0551590 commit 453221d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs/src/core/VarLen/SpanByte.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public long ExtraMetadata
if (value > 0)
{
length |= kExtraMetadataBitMask;
Debug.Assert(Length > MetadataSize);
Debug.Assert(Length >= MetadataSize);
if (Serialized)
*(long*)Unsafe.AsPointer(ref payload) = value;
else
Expand Down

0 comments on commit 453221d

Please sign in to comment.