Skip to content

Commit

Permalink
cgen: minor cleanup in gen_jsons()
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Dec 2, 2024
1 parent f3d0c53 commit 6a9666f
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 @@ -139,7 +139,7 @@ ${enc_fn_dec} {
\tcJSON *o;')
if is_js_prim(sym.name) && utyp.is_ptr() {
g.gen_prim_enc_dec(utyp, mut enc, mut dec)
} else if sym.kind == .array || sym.kind == .array_fixed {
} else if sym.kind in [.array, .array_fixed] {
array_size := if sym.kind == .array_fixed {
(sym.info as ast.ArrayFixed).size
} else {
Expand Down

0 comments on commit 6a9666f

Please sign in to comment.