int: i64 hex() use PRIx64
parent
b32a462b2e
commit
f46b58b09d
|
@ -150,7 +150,7 @@ pub fn (n i64) hex() string {
|
||||||
19
|
19
|
||||||
}
|
}
|
||||||
hex := malloc(len)
|
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)
|
return tos(hex, count)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue