Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 30, 2024
1 parent f877f47 commit 07d9ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/json.v
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ fn (mut g Gen) gen_prim_enc_dec(typ ast.Type, mut enc strings.Builder, mut dec s
@[inline]
fn (mut g Gen) gen_option_enc_dec(typ ast.Type, mut enc strings.Builder, mut dec strings.Builder) {
enc.writeln('\tif (val.state == 2) {')
enc.writeln('\t\treturn cJSON_CreateNull();')
enc.writeln('\t\treturn NULL;')
enc.writeln('\t}')
type_str := g.styp(typ.clear_flag(.option))
encode_name := js_enc_name(type_str)
Expand Down

0 comments on commit 07d9ac7

Please sign in to comment.