Skip to content

Commit a2e78fb

Browse files
authored
hash(::ZZRingElem) part that breaks printing (#2083)
1 parent 2316b97 commit a2e78fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/flint/fmpz.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ function hash_integer(a::ZZRingElem, h::UInt)
163163
end
164164

165165
function hash(a::ZZRingElem, h::UInt)
166-
@static if VERSION >= v"1.13.0-DEV.570" # TODO: remove the condition and instead always run the _is_small shortcut in a future breaking release of Nemo
167-
_fmpz_is_small(a) && return Base.hash(data(a), h)
168-
end
166+
_fmpz_is_small(a) && return Base.hash(data(a), h)
169167
return hash_integer(a, h)
170168
end
171169

0 commit comments

Comments
 (0)