Skip to content

Commit e405196

Browse files
committed
Fix rdbuf unittest check (CID 246574)
1 parent 7ec175f commit e405196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rdbuf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ static int do_unittest_write_read (void) {
12321232
RD_UT_ASSERT(pos == 200, "pos() returned position %"PRIusz, pos);
12331233

12341234
r = rd_buf_write(&b, twos, 800);
1235-
RD_UT_ASSERT(pos == 200, "write() returned position %"PRIusz, r);
1235+
RD_UT_ASSERT(r == 200, "write() returned position %"PRIusz, r);
12361236
pos = rd_buf_write_pos(&b);
12371237
RD_UT_ASSERT(pos == 200+800, "pos() returned position %"PRIusz, pos);
12381238

0 commit comments

Comments
 (0)