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

builder: add -lpthread; x64: a+b, a-b

This commit is contained in:
Alexander Medvednikov
2020-06-18 14:14:09 +02:00
parent 947e8922f2
commit 1d28d45c5c
7 changed files with 101 additions and 49 deletions

View File

@@ -321,6 +321,10 @@ pub fn (nn int) hex() string {
return u32(nn).hex()
}
pub fn (n int) hex2() string {
return '0x' + n.hex()
}
pub fn (nn u64) hex() string {
if nn == 0 {
return '0'