Skip to content

Commit

Permalink
fix: include WriteBits to !NET5_0_OR_GREATER
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Aug 27, 2023
1 parent 5d936b5 commit 41ba8b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion X10D/src/IO/DecimalExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static void GetBits(decimal value, Span<int> destination)
#endif
}

[Conditional("NET5_0_OR_GREATER")]
#if !NET5_0_OR_GREATER
private static void WriteBits(Span<int> destination, Span<byte> buffer)
{
var flags = MemoryMarshal.Read<int>(buffer[..4]);
Expand All @@ -117,4 +117,5 @@ private static void WriteBits(Span<int> destination, Span<byte> buffer)
destination[2] = hi;
destination[3] = flags;
}
#endif
}

0 comments on commit 41ba8b5

Please sign in to comment.