Skip to content

Commit ac7ebe7

Browse files
committed
build: fix warnings from GCC 15
Signed-off-by: He Xian <hexian000@outlook.com>
1 parent 52f85e6 commit ac7ebe7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

contrib/csnippets/codec/base64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <stddef.h>
77
#include <stdint.h>
88

9-
static const unsigned char encoding_table[64] =
9+
static const unsigned char encoding_table[] =
1010
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1111

1212
bool base64_encode(

src/ruleset/marshal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ static void
132132
marshal_number(lua_State *restrict L, struct vbuffer *restrict *restrict pvbuf)
133133
{
134134
const int idx = 1;
135-
static const char prefix[3] = "-0x";
136-
static const char xdigits[16] = "0123456789abcdef";
135+
static const char prefix[] = "-0x";
136+
static const char xdigits[] = "0123456789abcdef";
137137
unsigned char buf[120];
138138

139139
/* Handle integer values */

0 commit comments

Comments
 (0)