const qualifier added to hex digit array

This commit is contained in:
Wiesner András 2025-06-08 22:22:16 +02:00
parent 4722803891
commit 1a5a433188

View File

@ -171,7 +171,7 @@ static int pfn_literal_percent(va_list *va, FmtWord *fmt, char *outbuf, size_t f
#define INT_PRINT_OUTBUF_SIZE (47) #define INT_PRINT_OUTBUF_SIZE (47)
static char sNumChars[] = "0123456789abcdefABCDEF"; static const char sNumChars[] = "0123456789abcdefABCDEF";
static int print_number(uint64_t u, bool negative, FmtWord *fmt, char *outbuf, size_t free_space) { static int print_number(uint64_t u, bool negative, FmtWord *fmt, char *outbuf, size_t free_space) {
// output buffer fitting the full long int range // output buffer fitting the full long int range