cgen: fix typo from previous commit

pull/7162/head
joe-conigliaro 2020-12-06 15:18:24 +11:00
parent d779510616
commit aeb467e038
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
1 changed files with 1 additions and 1 deletions

View File

@ -5340,7 +5340,7 @@ fn (mut g Gen) type_default(typ_ table.Type) string {
} }
// Always set pointers to 0 // Always set pointers to 0
if typ.is_ptr() { if typ.is_ptr() {
return ' return '0'
} }
sym := g.table.get_type_symbol(typ) sym := g.table.get_type_symbol(typ)
if sym.kind == .array { if sym.kind == .array {