From a2671650430bf12304bead0bc9f23903f03db8a6 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 14 Dec 2021 23:14:08 +0100 Subject: Fixed bug in cbits_to_str(). --- include/stc/cbits.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/stc/cbits.h b/include/stc/cbits.h index 1816f41a..b3a70edc 100644 --- a/include/stc/cbits.h +++ b/include/stc/cbits.h @@ -196,13 +196,17 @@ STC_DEF cbits cbits_with_values(size_t size, uint64_t pattern) { } STC_DEF cbits cbits_from_n(const char* str, size_t n) { cbits set = cbits_with_size(n, false); - for (size_t i=0; i> 6) * 8; -- cgit v1.2.3