correct sign/1 (#216)
This commit is contained in:
@@ -329,7 +329,8 @@ pub fn requires_space(atom: &str, op: &str) -> bool {
|
|||||||
.next()
|
.next()
|
||||||
.map(|oc| {
|
.map(|oc| {
|
||||||
if ac == '0' {
|
if ac == '0' {
|
||||||
oc == 'b' || oc == 'x' || oc == 'o' || oc == '\'' || alpha_numeric_char!(oc)
|
oc == 'b' || oc == 'x' || oc == 'o' || oc == '\''
|
||||||
|
|| oc == '(' || alpha_numeric_char!(oc)
|
||||||
} else if alpha_numeric_char!(ac) {
|
} else if alpha_numeric_char!(ac) {
|
||||||
oc == '(' || alpha_numeric_char!(oc)
|
oc == '(' || alpha_numeric_char!(oc)
|
||||||
} else if graphic_token_char!(ac) {
|
} else if graphic_token_char!(ac) {
|
||||||
|
|||||||
@@ -1381,9 +1381,9 @@ impl MachineState {
|
|||||||
if n.is_positive() {
|
if n.is_positive() {
|
||||||
Integer::from(1)
|
Integer::from(1)
|
||||||
} else if n.is_negative() {
|
} else if n.is_negative() {
|
||||||
Integer::from(0)
|
|
||||||
} else {
|
|
||||||
Integer::from(-1)
|
Integer::from(-1)
|
||||||
|
} else {
|
||||||
|
Integer::from(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user