Skip to content

Commit 8b1295d

Browse files
Fixing a bug in methcounts checking if output is working
1 parent 5687341 commit 8b1295d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/methcounts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ write_output(const bamxx::bam_header &hdr, bamxx::bgzf_file &out,
267267
<< tag_values[tag_with_mut(the_tag, mut)] << '\t'
268268
<< (n_reads > 0 ? unconverted/n_reads : 0.0) << '\t'
269269
<< n_reads << '\n';
270-
if (out.write(buf.c_str(), buf.tellp()))
270+
if (!out.write(buf.c_str(), buf.tellp()))
271271
throw dnmt_error("error writing output");
272272
}
273273
}

0 commit comments

Comments
 (0)