summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--src/headers/bits-template4
2 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index e2dd8b6..bbe2afe 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -45,3 +45,4 @@ Thanks to:
Amitai Schleier <schmonz@schmonz.com>
psykose <alice@ayaya.dev>
Adam Beardwood <git@spad.co.uk>
+ Cormac Stephenson <c7s@kasku.net>
diff --git a/src/headers/bits-template b/src/headers/bits-template
index 306076d..23222d6 100644
--- a/src/headers/bits-template
+++ b/src/headers/bits-template
@@ -19,7 +19,7 @@ extern void uint@BITS@_bswapn (uint@BITS@_t *, size_t) ;
#define uint@BITS@0_ofmt(s, o, n) uint@BITS@0_fmt_base(s, o, (n), 8)
#define uint@BITS@_xfmt(s, x) uint@BITS@_fmt_base(s, (x), 16)
#define uint@BITS@0_xfmt(s, x, n) uint@BITS@0_fmt_base(s, x, (n), 16)
-#define uint@BITS@_bfmt(s, b) uint@BITS@0_fmt_base(s, (b), 2)
+#define uint@BITS@_bfmt(s, b) uint@BITS@_fmt_base(s, (b), 2)
#define uint@BITS@0_bfmt(s, b, n) uint@BITS@0_fmt_base(s, b, (n), 2)
extern size_t uint@BITS@_fmtlist (char *, uint@BITS@_t const *, size_t) ;
@@ -42,7 +42,7 @@ extern size_t uint@BITS@_scanlist (uint@BITS@_t *, size_t, char const *, size_t
#define int@BITS@_fmt(s, u) int@BITS@_fmt_base(s, (u), 10)
#define int@BITS@_ofmt(s, o) int@BITS@_fmt_base(s, (o), 8)
#define int@BITS@_xfmt(s, x) int@BITS@_fmt_base(s, (x), 16)
-#define int@BITS@_bfmt(s, b) int@BITS@0_fmt_base(s, (b), 2)
+#define int@BITS@_bfmt(s, b) int@BITS@_fmt_base(s, (b), 2)
extern size_t int@BITS@_fmtlist (char *, int@BITS@_t const *, size_t) ;