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:
parent
b32a462b2e
commit
f46b58b09d
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user