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

int: i64 hex() use PRIx64

This commit is contained in:
Unknown User 2019-10-17 10:06:54 +02:00 committed by Alexander Medvednikov
parent b32a462b2e
commit f46b58b09d

View File

@ -150,7 +150,7 @@ pub fn (n i64) hex() string {
19
}
hex := malloc(len)
count := int(C.sprintf(*char(hex), '0x%llx', n))
count := int(C.sprintf(*char(hex), '0x%' C.PRIx64, n))
return tos(hex, count)
}