Skip to content

Commit

Permalink
Use convert ToDecimal instead of explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcs85 committed Jan 21, 2020
1 parent a17ed03 commit 64d3ae5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ private static void WriteFloat64(MemoryStream ms, object value)

private static void WriteFloat128(MemoryStream ms, object value)
{
Int32[] bits = decimal.GetBits((decimal)value);
Int32[] bits = decimal.GetBits(Convert.ToDecimal(value));
List<byte> bytes = new List<byte>();
foreach (Int32 i in bits)
{
Expand Down

0 comments on commit 64d3ae5

Please sign in to comment.