fix: Repr instance for Int32 (#7467)

This PR fixes the `Repr Int32` instance, which was previously repeating
the `Repr Int16` instance due to a copy-and-paste error.
This commit is contained in:
Markus Himmel 2025-03-13 07:24:42 +01:00 committed by GitHub
parent 816da7120e
commit 4262ea14d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -402,9 +402,9 @@ def Int32.neg (i : Int32) : Int32 := ⟨⟨-i.toBitVec⟩⟩
instance : ToString Int32 where
toString i := toString i.toInt
instance : Repr Int16 where
instance : Repr Int32 where
reprPrec i prec := reprPrec i.toInt prec
instance : ReprAtom Int16 := ⟨⟩
instance : ReprAtom Int32 := ⟨⟩
instance : Hashable Int32 where
hash i := i.toUInt32.toUInt64