Skip to content

Commit cfa3178

Browse files
Convert report branches to int _before_ adding offset
1 parent bc7543e commit cfa3178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hypofuzz/hy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def _json_description(self) -> Report:
405405
doubletons = self.pool.doubletons
406406
offset = singletons * (singletons-1) / 2 if 0 == doubletons else singletons * singletons / (2 * doubletons)
407407
offset = int(offset) + 1
408-
report["est. branches"] = report["branches"] + offset
408+
report["est. branches"] = int(report["branches"]) + offset
409409
return report
410410

411411
@property

0 commit comments

Comments
 (0)