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

net: byte fixes

This commit is contained in:
Alexander Medvednikov
2022-04-15 15:55:39 +03:00
parent fb192d949b
commit af73e195da
18 changed files with 54 additions and 65 deletions

View File

@ -133,7 +133,7 @@ pub fn i64_str(n0 i64, base int) string {
}
pub fn ptr_str(ptr voidptr) string {
buf := [16]byte{}
buf := [16]u8{}
hex := i64_tos(buf, 15, i64(ptr), 16)
res := '0x' + hex
return res