1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:25:43 +00:00

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

View File

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