refactor: discard GetBits return

This commit is contained in:
Oliver Booth 2023-08-26 18:50:49 +01:00
parent 799e635577
commit cfe70a7923
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public static class DecimalExtensions
private static void GetBits(decimal value, Span<int> destination)
{
#if NET5_0_OR_GREATER
decimal.GetBits(value, destination);
_ = decimal.GetBits(value, destination);
#else
Span<byte> buffer = stackalloc byte[16];
MemoryMarshal.Write(buffer, ref value);