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:
parent
816da7120e
commit
4262ea14d6
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue