Skip to content

Commit 04af8af

Browse files
Fixing add semantics in Number
1 parent c78b42e commit 04af8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/it/unipr/analysis/Number.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public Number add(Number other) {
133133
if (this.getType() == other.getType() && other.getType() == Type.INT)
134134
return new Number(i + other.getInt());
135135
if (this.getType() == other.getType() && other.getType() == Type.LONG)
136-
return new Number((long) l - other.getLong());
136+
return new Number((long) l + other.getLong());
137137

138138
BigInteger me = toBigInteger(this);
139139
BigInteger ot = toBigInteger(other);

0 commit comments

Comments
 (0)