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

v2: resolve unresolved call expression types & add test

This commit is contained in:
joe-conigliaro
2020-02-04 22:03:12 +11:00
committed by GitHub
parent 83f0c228e9
commit 85e4e4cb40
9 changed files with 186 additions and 30 deletions

View File

@@ -148,7 +148,7 @@ pub fn (b bool) str() string {
pub fn (n int) hex() string {
len := if n >= 0 { n.str().len + 3 } else { 11 }
hex := malloc(len) // 0x + \n
count := int(C.sprintf(charptr(hex), '0x%x', n))
count := C.sprintf(charptr(hex), '0x%x', n)
return tos(hex, count)
}