File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,12 @@ end
130
130
131
131
# Annoyingly, Unsigned(T) isn't defined for BitIntegers types:
132
132
# https://github.com/rfourquet/BitIntegers.jl/pull/2
133
+ # Note: We do not need this for Int512, since we only widen to 512 _after_ calling
134
+ # _unsigned, above. This code is only for supporting the built-in integer types, which only
135
+ # go up to 128-bits (widened twice to 512). If a user wants to extend FixedDecimals for
136
+ # other integer types, they will need to add methods to either _unsigned or unsigned.
133
137
_unsigned (x) = unsigned (x)
134
138
_unsigned (:: Type{Int256} ) = UInt256
135
139
_unsigned (:: Type{UInt256} ) = UInt256
136
- _unsigned (:: Type{Int128} ) = UInt128
137
- _unsigned (:: Type{UInt128} ) = UInt128
138
140
139
141
nbits (x) = sizeof (x) * 8
You can’t perform that action at this time.
0 commit comments