Skip to content

Commit 2f2c36a

Browse files
Bug fix: Using max_cov_count with integer typecast
1 parent a4f82ca commit 2f2c36a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp_coveralls/coverage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ def parse_lcov_file_info(args, filepath, line_iter, line_coverage_re, file_end_s
300300
line_no = line_coverage_match.group(1)
301301
cov_count = int(line_coverage_match.group(2))
302302
if args.max_cov_count:
303-
if cov_count > args.max_cov_count:
304-
cov_count = args.max_cov_count + 1
303+
if cov_count > int(args.max_cov_count):
304+
cov_count = int(args.max_cov_count) + 1
305305
lines_covered.append((line_no, cov_count))
306306
else:
307307
break

0 commit comments

Comments
 (0)