Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bstest #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ int ret = 0;
printf ("[%d] i = %d, j = %d, l = %d, k = %d, b->slen = %d\n", __LINE__, i, j, l, k, b->slen);
ret++;
} else if (0 != memcmp (t, b->data, l-k+1)) {
printf ("[%d] \"%s\" != \"%s\"\n", b->data, t);
printf ("[%d] \"%s\" != \"%s\"\n", __LINE__, b->data, t);
ret++;
}
bdestroy (b);
Expand Down Expand Up @@ -632,7 +632,7 @@ static int test47_0 (const struct tagbstring* b, const unsigned char* blk, int l
int rv, ret = 0;

ret += (res != (rv = biseqblk (b, blk, len)));
printf (".\tbiseqblk (%s, %s) = %d\n", dumpBstring (b), dumpCstring (blk), rv);
printf (".\tbiseqblk (%s, %s) = %d\n", dumpBstring (b), dumpCstring ((const char*)blk), rv);
if (ret) {
printf ("\t\tfailure(%d) = %d (res = %d)\n", __LINE__, ret, res);
}
Expand Down Expand Up @@ -3037,7 +3037,7 @@ static int test48_0 (const_bstring b, const unsigned char * blk, int len, int re
int rv, ret = 0;

ret += (res != (rv = biseqcaselessblk (b, blk, len)));
printf (".\tbiseqcaselessblk (%s, %s, %d) = %d\n", dumpBstring (b), dumpCstring (blk), len, rv);
printf (".\tbiseqcaselessblk (%s, %s, %d) = %d\n", dumpBstring (b), dumpCstring ((const char*)blk), len, rv);
if (ret) {
printf ("\t\tfailure(%d) = %d (res = %d)\n", __LINE__, ret, res);
}
Expand Down