aboutsummaryrefslogtreecommitdiff
path: root/b32.c
diff options
context:
space:
mode:
Diffstat (limited to 'b32.c')
-rw-r--r--b32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/b32.c b/b32.c
index 1c50aa5..be8532f 100644
--- a/b32.c
+++ b/b32.c
@@ -2,6 +2,10 @@
#include <stddef.h>
#include <stdint.h>
+#include "b32.h"
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wsign-conversion"
static const uint8_t ctov[] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
@@ -20,6 +24,7 @@ static const uint8_t ctov[] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
};
+#pragma GCC diagnostic pop
bool
b32toa(uint8_t *dst, const char *src, size_t len)