mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-17 04:44:39 +03:00
Reference interpreter: fix bug in tuple comparisons
This commit is contained in:
parent
0d2e36a18a
commit
617dfb0c93
@ -864,7 +864,7 @@ bits to the *left* of that position are equal.
|
||||
> TVFun _ _ ->
|
||||
> evalPanic "lexCompare" ["invalid type"]
|
||||
> TVTuple etys ->
|
||||
> lexList (zipWith3 lexCompare etys (fromVList l) (fromVList r))
|
||||
> lexList (zipWith3 lexCompare etys (fromVTuple l) (fromVTuple r))
|
||||
> TVRec fields ->
|
||||
> let tys = map snd (sortBy (comparing fst) fields)
|
||||
> ls = map snd (sortBy (comparing fst) (fromVRecord l))
|
||||
|
Loading…
Reference in New Issue
Block a user