Skip to content

Commit 3a8fdd1

Browse files
author
Thomas Kiley
committed
Fix error in binary eval for subtraction
Was wrongly using the unary negation operator, rather than subtracting one interval from the other.
1 parent d2ba9d1 commit 3a8fdd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/interval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ constant_interval_exprt constant_interval_exprt::eval(
818818
}
819819
if(binary_operator == ID_minus)
820820
{
821-
return unary_minus(other);
821+
return minus(other);
822822
}
823823
if(binary_operator == ID_mult)
824824
{

0 commit comments

Comments
 (0)