1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

picohttpparser: make u64toa public (#18861)

This commit is contained in:
l-m 2023-07-14 14:21:40 +00:00 committed by GitHub
parent fb11a16ab8
commit 4413808941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {