int: i64 hex() use PRIx64

pull/2388/head
Unknown User 2019-10-17 10:06:54 +02:00 committed by Alexander Medvednikov
parent b32a462b2e
commit f46b58b09d
1 changed files with 1 additions and 1 deletions

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)
}