Skip to content

Commit 9f3c32d

Browse files
authored
Use WriteDoubleLittleEndian in NumericGraphemeInfo (#112611)
1 parent 75e7800 commit 9f3c32d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libraries/System.Private.CoreLib/Tools/GenUnicodeProp/NumericGraphemeInfo.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public static byte[] ToDigitBytes(NumericGraphemeInfo input)
5555
public static byte[] ToNumericBytes(NumericGraphemeInfo input)
5656
{
5757
byte[] bytes = new byte[sizeof(double)];
58-
double value = input._data.numericValue;
59-
BinaryPrimitives.WriteUInt64LittleEndian(bytes, Unsafe.As<double, ulong>(ref value));
58+
BinaryPrimitives.WriteDoubleLittleEndian(bytes, input._data.numericValue);
6059
return bytes;
6160
}
6261

0 commit comments

Comments
 (0)