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

cgen: fix remaining errors. hello world now compiles

This commit is contained in:
Alexander Medvednikov
2020-03-12 09:11:41 +01:00
parent 853bb4c41e
commit 92d6eec09a
6 changed files with 46 additions and 21 deletions

View File

@@ -32,9 +32,8 @@ pub fn type_nr_muls(t Type) int {
// return true if pointer (nr_muls>0)
[inline]
pub fn type_is_ptr(t Type) bool {
return type_nr_muls(t) > 0
return type_nr_muls(t) > 0 // || t == voidptr_type_idx
}
// set nr_muls on Type and return it
[inline]
pub fn type_set_nr_muls(t Type, nr_muls int) Type {