From 4d88810fc1cab3a8c358712d7d3b97bb25fc92a3 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 3 Nov 2022 15:52:20 -0400 Subject: [PATCH] Move hulk.writef hex character strings out of data section --- src/hulk/writef.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hulk/writef.d b/src/hulk/writef.d index deebe28..f305622 100644 --- a/src/hulk/writef.d +++ b/src/hulk/writef.d @@ -88,8 +88,8 @@ size_t writef(string s, va_list args, ch_out_fn ch_out) */ private size_t write_hex(ulong v, bool upper, char pad, size_t width, ch_out_fn ch_out) { - static __gshared string hex_chars_lower = "0123456789abcdef"; - static __gshared string hex_chars_upper = "0123456789ABCDEF"; + static __gshared const(char)[16] hex_chars_lower = "0123456789abcdef"; + static __gshared const(char)[16] hex_chars_upper = "0123456789ABCDEF"; static __gshared char[16] buf; size_t i; do