aboutsummaryrefslogtreecommitdiff
path: root/sys/libbio/io/fasta.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libbio/io/fasta.c')
-rw-r--r--sys/libbio/io/fasta.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/libbio/io/fasta.c b/sys/libbio/io/fasta.c
index bb6bfc7..28c9ca4 100644
--- a/sys/libbio/io/fasta.c
+++ b/sys/libbio/io/fasta.c
@@ -32,9 +32,9 @@ grow(struct Seqbuf **sb, int min)
vlong newlen;
old = *sb;
- Assert((*sb)->len <= (SIZE_MAX - 1) / 2);
+ assert((*sb)->len <= (SIZE_MAX - 1) / 2);
newlen = MAX(16, MAX(1 + 2*(*sb)->len, (*sb)->len+min));
- Assert(newlen >= (*sb)->len+min);
+ assert(newlen >= (*sb)->len+min);
if (new = old->heap.alloc(old->h, 1, sizeof(*new)+newlen), !new) {
errorf("memory: could not allocate new buffer");
@@ -179,7 +179,7 @@ readfasta(bio·FastaReader *rdr, bio·Seq *seq, byte hdr, byte stop)
reset(rdr->seq);
// NOTE: Can this case happen?
- Assert(rdr->b != rdr->bend);
+ assert(rdr->b != rdr->bend);
if (*rdr->b++ != hdr) {
errorf("fasta/q format: expected '%c', found '%c'", hdr, *rdr->b--);
return 1;