mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
int: i64 hex() use PRIx64
This commit is contained in:
parent
b32a462b2e
commit
f46b58b09d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue