Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 20, 2024
1 parent d4c4592 commit a701b81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vlib/v/gen/c/json.v
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,7 @@ fn (mut g Gen) gen_struct_enc_dec(utyp ast.Type, type_info ast.TypeInfo, styp st
} else {
// Now generate decoders for all field types in this struct
// need to do it here so that these functions are generated first
if !name[0].is_capital() {
g.gen_json_for_type(field.typ)
}
g.gen_json_for_type(field.typ)
dec_name := js_dec_name(field_type)
if is_js_prim(field_type) {
tmp := g.new_tmp_var()
Expand Down

0 comments on commit a701b81

Please sign in to comment.