correct sign/1 (#216)

This commit is contained in:
Mark Thom
2019-10-27 14:18:32 -06:00
parent 67a00e4deb
commit 0dcd9e5805
2 changed files with 4 additions and 3 deletions

View File

@@ -1381,9 +1381,9 @@ impl MachineState {
if n.is_positive() {
Integer::from(1)
} else if n.is_negative() {
Integer::from(0)
} else {
Integer::from(-1)
} else {
Integer::from(0)
}
}