Permalink
Browse files

Add missing packing check

  • Loading branch information...
akosba committed Sep 5, 2018
1 parent 77d054c commit 2e5651d9f5fc33913b8e737e83d4e57fa3cd3958
Showing with 1 addition and 0 deletions.
  1. +1 −0 JsnarkCircuitBuilder/src/circuit/structure/Wire.java
@@ -113,6 +113,7 @@ public Wire add(BigInteger b, String... desc) {
}
public Wire sub(Wire w, String... desc) {
packIfNeeded(desc);
w.packIfNeeded(desc);
Wire neg = w.mul(-1, desc);
return add(neg, desc);

0 comments on commit 2e5651d

Please sign in to comment.