vfmt: fix `init_fn gg.FNCb = voidptr(0)` when vfmt-ing gg.v

pull/6640/head
Delyan Angelov 2020-10-18 08:42:08 +03:00
parent 55536bb364
commit 5c4ba3474b
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ pub fn (mut f Fmt) struct_decl(node ast.StructDecl) {
if comments_len + field.name.len > max {
max = comments_len + field.name.len
}
ft := f.table.type_to_str(field.typ)
ft := f.no_cur_mod(f.table.type_to_str(field.typ))
field_types << ft
if ft.len > max_type {
max_type = ft.len