Skip to content

Commit be99c32

Browse files
committed
Fixed use of wrong function
1 parent b84d6e2 commit be99c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LowLevel/Floats.scope

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import "LowLevel/BitManip";
44
Returns the exponent of @"d" as a raw int.
55
%/
66
func int exponentPart(dec d) {
7-
ret and(shr(rawCastIntToDec(d), 52), 2047);
7+
ret and(shr(rawCastDecToInt(d), 52), 2047);
88
}
99

1010
/%
1111
Returns the mantissa of @"d" as a raw int.
1212
%/
1313
func int mantissaPart(dec d) {
14-
ret and(rawCastIntToDec(d), 4503599627370495);
14+
ret and(rawCastDecToInt(d), 4503599627370495);
1515
}

0 commit comments

Comments
 (0)