From 3297ca7f3a3313e80e49547c857e1593286316b8 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 31 May 2020 14:53:10 -0700 Subject: minor changes --- sys/libbio/io/fasta.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/libbio/io/fasta.c') 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; -- cgit v1.2.1