aboutsummaryrefslogtreecommitdiff
path: root/sys/libbio
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-31 14:53:10 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-31 14:53:10 -0700
commit3297ca7f3a3313e80e49547c857e1593286316b8 (patch)
treee3fc9e24e7ca89be75c1d1981107de8a01d0fe61 /sys/libbio
parentb6291927ffb898e37fd482b08669b3577e4d669a (diff)
minor changes
Diffstat (limited to 'sys/libbio')
-rw-r--r--sys/libbio/io/fasta.c6
-rw-r--r--sys/libbio/io/newick.c8
2 files changed, 7 insertions, 7 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;
diff --git a/sys/libbio/io/newick.c b/sys/libbio/io/newick.c
index da94ef2..164516f 100644
--- a/sys/libbio/io/newick.c
+++ b/sys/libbio/io/newick.c
@@ -86,7 +86,7 @@ lex(io·Peeker s, void* fp)
}
s.unget(fp, *c);
- Assert(c - b < 1024);
+ assert(c - b < 1024);
*c = 0;
tok.kind = tok·space;
@@ -114,7 +114,7 @@ lex(io·Peeker s, void* fp)
if (isvalidchar(*c)) goto IDENT;
s.unget(fp, *c);
- Assert(c - b < 1024);
+ assert(c - b < 1024);
*c = 0;
tok.kind = tok·number;
@@ -125,7 +125,7 @@ lex(io·Peeker s, void* fp)
while ((*c) != '\"') {
*(++c) = s.get(fp);
}
- Assert(c - b < 1024);
+ assert(c - b < 1024);
*c = '\0';
tok.kind = tok·ident;
@@ -138,7 +138,7 @@ lex(io·Peeker s, void* fp)
*(++c) = s.get(fp);
}
s.unget(fp, *c);
- Assert(c - b < 1024);
+ assert(c - b < 1024);
*c = '\0';
tok.kind = tok·ident;