Skip to content

Commit d3a2862

Browse files
committed
#67 Use BigInteger.valueOf.
1 parent 14495fe commit d3a2862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/javabdd/JFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6354,7 +6354,7 @@ BigInteger satcount_rec(int root) {
63546354
BddCacheDataBI entry;
63556355

63566356
if (root < 2) {
6357-
return (root == 0) ? BigInteger.ZERO : BigInteger.ONE;
6357+
return BigInteger.valueOf(root);
63586358
}
63596359

63606360
entry = BddCache_lookupBI(countcache, SATCOUHASH(root));

0 commit comments

Comments
 (0)