From 44138089410c7389cef0c52f509c2f5889ce047e Mon Sep 17 00:00:00 2001 From: l-m Date: Fri, 14 Jul 2023 14:21:40 +0000 Subject: [PATCH] picohttpparser: make u64toa public (#18861) --- vlib/picohttpparser/misc.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/picohttpparser/misc.v b/vlib/picohttpparser/misc.v index a96c5c9449..2cf73cd238 100644 --- a/vlib/picohttpparser/misc.v +++ b/vlib/picohttpparser/misc.v @@ -19,8 +19,8 @@ const ( // u64toa converts `value` to an ascii string and stores it at `buf_start` // then it returns the length of the ascii string (branch lookup table implementation) -[direct_array_access; inline] -fn u64toa(buf_start &u8, value u64) !int { +[direct_array_access; unsafe] +pub fn u64toa(buf_start &u8, value u64) !int { mut buf := unsafe { buf_start } // set maximum length to 100MB if value >= 100_000_000 {