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

compiler: make V compilable wit the tcc backend

This commit is contained in:
Alexander Medvednikov
2019-10-11 03:55:54 +03:00
parent c3787e17fd
commit 726aaecc46
5 changed files with 15 additions and 2 deletions

View File

@@ -201,7 +201,11 @@ pub fn (s string) u32() u32 {
}
pub fn (s string) u64() u64 {
return C.strtoull(*char(s.str), 0, 0)
//$if tinyc {
return u64(s.int()) // TODO
//} $else {
//return C.strtoull(*char(s.str), 0, 0)
//}
//return C.atoll(s.str) // temporary fix for tcc on windows.
}